Issue11356
Created on 2011-02-28 22:30 by ncoghlan, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg129729 - (view) | Author: Alyssa Coghlan (ncoghlan) * ![]() |
Date: 2011-02-28 22:30 | |
Catching ImportError in order to switch to an alternate implementation can mask real failures in imported modules. Attaching the module name as an attribute would allow this to be handled correctly by doing something like: try: import simplejson except ImportError as err: if err.module_name != 'simplejson': raise <backup plan> See http://mail.python.org/pipermail/python-ideas/2011-February/009209.html |
|||
| msg129741 - (view) | Author: Georg Brandl (georg.brandl) * ![]() |
Date: 2011-03-01 06:35 | |
This is a dupe of #1559549. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:57:13 | admin | set | github: 55565 |
| 2011-03-01 06:35:45 | georg.brandl | set | status: open -> closed nosy:
+ georg.brandl superseder: ImportError needs attributes for module and file name |
| 2011-02-28 22:52:29 | cool-RR | set | nosy:
+ cool-RR |
| 2011-02-28 22:30:43 | ncoghlan | create | |
