[issue41399] Add stacklevel support for exceptions

Serhiy Storchaka report at bugs.python.org
Sun Jul 26 06:23:51 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

warnings.warn(), the function which emits warnings, has the stacklevel parameter. But how do you provide stacklevel for exceptions?

See also bpo-39725.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41399>
_______________________________________


More information about the Python-bugs-list mailing list