Do not assume that all exception constructors accept a single string argument. For example UnicodeError's __init__ takes 5 parameters: encoding, object, start, end, reason. Also, if e.message is present but empty, fall back on stringifying the exception occurrence. Fixes #35270 |
||
---|---|---|
.. | ||
__init__.py | ||
safe_eval.py | ||
template.py | ||
vars.py |