summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 67304a3..09d8f0e 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -1617,7 +1617,7 @@ def _gcd_import(name, package=None, level=0):
_imp.release_lock()
message = ("import of {} halted; "
"None in sys.modules".format(name))
- raise ModuleNotFoundError(message, name=name)
+ raise ImportError(message, name=name)
_lock_unlock_module(name)
return module