[issue43002] Exception chaining accepts exception classes
Ram Rachum
report at bugs.python.org
Sat Jan 23 02:06:29 EST 2021
Ram Rachum <ram at rachum.com> added the comment:
People barely know how to use the right form of this feature. Providing them with a wrong form that's confusingly similar to the right form and fails silently is an unfortunate choice.
"Or just don't do anything. A `raise exception` inside an except block will be automatically chained with the current exception [...]"
With the wrong message, yes.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43002>
_______________________________________
More information about the Python-bugs-list
mailing list