Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue41399>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to