Closed
Description
I don't find the exceptions raised by jigsawpy
to be very intuitive, and I think that might be true for most python users.
As an example:
jigsaw-python/jigsawpy/savemsh.py
Line 613 in f875719
I would expect something like:
if (not isinstance(name, str)):
raise TypeError("Argument 'name' to savemsh should be of type str")
As I understand it, the generic Exception
class is only intended as a base class for exceptions and shouldn't be used directly.
Python is case sensitive so the use of NAME
here also led to some confusion for me.