Commit 9c9b1bde authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Raise AssertionError when exhausted

parent 07d77609
...@@ -549,8 +549,9 @@ class Args(Canonical): ...@@ -549,8 +549,9 @@ class Args(Canonical):
if not key in canonified.keys(): if not key in canonified.keys():
position = i + 1 position = i + 1
break break
else: # exhausted else:
raise Exception("shouldn't happen") m = "Formal arguments exhausted"
raise AssertionError(m)
canonified[key] = kw[key].check(v) canonified[key] = kw[key].check(v)
return canonified return canonified
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment