You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm reading in text files and trying to identify units in them. I just randomly discovered that calling ureg('-') throws an AssertionError rather than a pint.errors.UndefinedUnitError. It appears to do the same thing for other symbols, like ureg('*').
I could understand maybe throwing an error other than an UndefinedUnitError, but an AssertionError is clearly a bad choice here.
The text was updated successfully, but these errors were encountered:
I'm reading in text files and trying to identify units in them. I just randomly discovered that calling
ureg('-')
throws anAssertionError
rather than apint.errors.UndefinedUnitError
. It appears to do the same thing for other symbols, likeureg('*')
.I could understand maybe throwing an error other than an
UndefinedUnitError
, but anAssertionError
is clearly a bad choice here.The text was updated successfully, but these errors were encountered: