Commit fea73efc authored by Brett Cannon's avatar Brett Cannon

Issue #14605: Don't error out if get_importer() returns None.

parent 6d3b3218
......@@ -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
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment