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 047548c commit 19e53c4Copy full SHA for 19e53c4
1 file changed
Doc/library/importlib.rst
@@ -124,10 +124,9 @@ Functions
124
need to call :func:`invalidate_caches` in order for the new module to be
125
noticed by the import system.
126
127
- If the module cannot be imported, :func:`import_module` will raise an
128
- :exc:`ImportError`. If the module is found and loaded, but the code in the
129
- module raises an exception, :func:`import_module` will pass that exception
130
- to the module that called it.
+ If the module cannot be imported, :func:`import_module` will raise
+ :exc:`ImportError` or an appropriate subclass like
+ :exc:`ModuleNotFoundError`.
131
132
.. versionchanged:: 3.3
133
Parent packages are automatically imported.
0 commit comments