Martin Panter added the comment:

Closely related: Issue 14285, where an ImportError and various other exceptions 
caused by code in __init__.py are also incorrectly caught, trigger unexpected 
error messages, with no traceback being reported.

Not sure if checking the “name” attribute will help in even all of the most 
common cases, but it should be better than nothing. Another idea I had was 
checking if a module was inserted into sys.modules.

----------
nosy: +vadmium

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19771>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to