SynBioDex / pySBOL3

Native python implementation of SBOL 3.0 specification
MIT License
37 stars 16 forks source link

Improve error message for setting refobj #236

Open jakebeal opened 3 years ago

jakebeal commented 3 years ago

When getting an error from setting a refobj_property.py, it would be good to get a more informative error message. Here is a current example:

  File "/usr/local/lib/python3.9/site-packages/sbol3/refobj_property.py", line 35, in from_user
    raise TypeError(f'Expecting string, got {type(value)}')
TypeError: Expecting string, got <class 'NoneType'>

Here's what this is actually communicating: "Trying to reference an object whose URI is not set."