diff options
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r-- | Lib/pkgutil.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 932abbc1817..8e062a4cd97 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -466,6 +466,8 @@ def find_loader(fullname): platform-specific special import locations such as the Windows registry. """ for importer in iter_importers(fullname): + if importer is None: + continue loader = importer.find_module(fullname) if loader is not None: return loader |