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):
if not key in canonified.keys():
position = i + 1
else: # exhausted
raise Exception("shouldn't happen")
m = "Formal arguments exhausted"
raise AssertionError(m)
canonified[key] = kw[key].check(v)
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