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
{{ message }}
Repository navigation
str() on a FixedLengthError instance crashes with AttributeError #2
Tried calling str() on a caught exception and it blew up.
What I Did
>>> import fwffr
>>> str(fwffr.FixedLengthError("asdf"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/diegoargueta/.pyenv/versions/3.7.6/envs/gds3/lib/python3.7/site-packages/fwffr.py", line 31, in __str__
return self.message
AttributeError: 'FixedLengthError' object has no attribute 'message'
'FixedLengthError' object has no attribute 'message'
Either this should be an abstract base class or some tweaking is needed for rendering the error message.
Activity
Add default message attribute