Rewrite the pyc test
This commit is contained in:
1 parent
fd8f254ce1
commit
9ca7b30e38
2 files changed
+31
-20
No files matched your search
@@ -141,7 +141,7 @@ def load_module(evaluator, dotted_name, sys_path):
|
||||
__import__(dotted_name)
|
||||
except ImportError:
|
||||
# If a module is "corrupt" or not really a Python module or whatever.
|
||||
print_to_stderr('Module %s not importable.' % dotted_name)
|
||||
print_to_stderr('Module %s not importable in path %s.' % (dotted_name, sys_path))
|
||||
return None
|
||||
except Exception:
|
||||
# Since __import__ pretty much makes code execution possible, just
|
||||
|
||||
Reference in new issue
Block a user