PrettyErrors
PrettyErrors copied to clipboard
SyntaxError messages just say 'invalid syntax' instead of the provided hints
Issue
When printing a syntax error, the exception includes a help message in the msg
attribute, but the message in args[0]
is printed instead, which is almost always "invalid syntax"
and unhelpful.
Currently:
Ideally :
Suggested Fix :
Changing line 682 in init.py from exception_value.args = [exception_value.args[0]]
to exception_value.args = [exception_value.msg]
could you possibly PR this?