Irit Katriel <iritkatr...@gmail.com> added the comment:

ModuleNotFoundError is a subclass of ImportError, so it's probably enough to 
just document the functions as raising ImportError on failure, as in the case 
of 
https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module.

----------
keywords: +easy
nosy: +iritkatriel
versions: +Python 3.11 -Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40899>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to