Message399320
Note that importlib.import_module, and the import statement itself, can raise an arbitrary exception when that exception is raised while executing the module body.
This is easily observed by creating a module that just raises an error in its body:
# t.py
1/0
# EOF
``importlib.import_module("t")`` will raise ZeroDivisionError. |
|
Date |
User |
Action |
Args |
2021-08-10 12:58:43 | ronaldoussoren | set | recipients:
+ ronaldoussoren, docs@python, j13r, iritkatriel, meowmeowmeowcat |
2021-08-10 12:58:43 | ronaldoussoren | set | messageid: <1628600323.8.0.95567449739.issue40899@roundup.psfhosted.org> |
2021-08-10 12:58:43 | ronaldoussoren | link | issue40899 messages |
2021-08-10 12:58:43 | ronaldoussoren | create | |
|