Skip to content

Commit

Permalink
Use proper formatting on AlternatingSequence error
Browse files Browse the repository at this point in the history
Fixes #90
  • Loading branch information
tabatkins committed Sep 6, 2021
1 parent d039911 commit 7028516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railroad.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def __new__(cls, *items):
if len(items) == 2:
return super(AlternatingSequence, cls).__new__(cls)
else:
raise Exception("AlternatingSequence takes exactly two arguments got " + len(items))
raise Exception("AlternatingSequence takes exactly two arguments, but got {0} arguments.".format(len(items)))

def __init__(self, *items):
DiagramMultiContainer.__init__(self, 'g', items)
Expand Down

0 comments on commit 7028516

Please sign in to comment.