rossant/smopy — pull request #4 by vins31 (2014-08-16 11:12:56+00:00)
Title: Fix 'ArgumentError' is not defined

To my knowledge, ArgumentError is not a standard python exception but comes from the module argparse. argparse.ArgumentError is for program arguments parsing, not for functions/methods arguments bad values.
In addition, the argparse module is not imported, thus when this line is executed, I get the error: "NameError: name 'ArgumentError' is not defined".

That is why I suggest to raise an Exception object.