Ethan Furman <[email protected]> added the comment:
Looks like the following code:
if module is None:
try:
module = sys._getframe(2).f_globals['__name__']
except (AttributeError, ValueError) as exc:
pass
needs to have `KeyError` added to the `except` line.
----------
assignee: -> ethan.furman
stage: -> test needed
type: -> behavior
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue35717>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com