We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 934ccbf commit ec4607dCopy full SHA for ec4607d
source/loaders/py_loader/source/py_loader_impl.c
@@ -1565,7 +1565,11 @@ int py_loader_impl_initialize_import(loader_impl_py py_impl)
1565
" m = importlib.util.module_from_spec(spec)\n"
1566
" spec.loader.exec_module(m)\n"
1567
" return m\n"
1568
+ " except ImportError as e:\n"
1569
+ " return e\n"
1570
" except Exception as e:\n"
1571
+ " import traceback\n"
1572
+ " print(traceback.format_exc())\n"
1573
" return e\n"
1574
#elif PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 3
1575
// TODO: Not tested
0 commit comments