Skip to content

Commit

Permalink
ChainFormat error message fix (spotify#1971)
Browse files Browse the repository at this point in the history
1. Space was missing
2. Chain members order was reversed.
  • Loading branch information
sbj-ss authored and kreczko committed Mar 28, 2017
1 parent 2ac69ca commit a9e342c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions luigi/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@ def __init__(self, *args, **kwargs):
if args[x].output != args[x + 1].input:
raise TypeError(
'The format chaining is not valid, %s expect %s'
'but %s provide %s' % (
args[x].__class__.__name__,
args[x].input,
' but %s provide %s' % (
args[x + 1].__class__.__name__,
args[x + 1].output,
args[x + 1].input,
args[x].__class__.__name__,
args[x].output,
)
)
except AttributeError:
Expand Down

0 comments on commit a9e342c

Please sign in to comment.