Commits

Anthony Tuininga  committed a67c6c9

If an import error occurs during the load phase, treat that as a bad module as
well. Thanks to Tony Meyer for pointing this out.

  • Participants
  • Parent commits 2e9be43

Comments (0)

Files changed (1)

File cx_Freeze/finder.py

             return module, returnError
         try:
             fp, path, info = self._FindModule(searchName, path)
+            module = self._LoadModule(name, fp, path, info, deferredImports,
+                    parentModule)
         except ImportError:
             self._modules[name] = None
             return None, True
-        module = self._LoadModule(name, fp, path, info, deferredImports,
-                parentModule)
         return module, False
 
     def _LoadModule(self, name, fp, path, info, deferredImports,