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
>>> from dateutil.parser import ParserError
>>> ParserError("Hi")
dateutil.parser._parser.ParserError('Hi')
I think the definition of the repr is also a bit problematic, in that even if you fix the indentation issue, it would return ParserError(Hi) instead of ParserError('Hi') in the above situation. I will make a PR shortly.
The text was updated successfully, but these errors were encountered:
There is an indentation error in the definition for
__str__
/__repr__
indateutil.parser.ParserError
, which means that__repr__
is never even defined for the class:I think the definition of the repr is also a bit problematic, in that even if you fix the indentation issue, it would return
ParserError(Hi)
instead ofParserError('Hi')
in the above situation. I will make a PR shortly.The text was updated successfully, but these errors were encountered: