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
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]
The text was updated successfully, but these errors were encountered:
Issue
When printing a syntax error, the exception includes a help message in the
msg
attribute, but the message inargs[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]]
toexception_value.args = [exception_value.msg]
The text was updated successfully, but these errors were encountered: