mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-20 07:28:32 +08:00
Add a better debugging message for import fails.
This commit is contained in:
@@ -413,7 +413,7 @@ def load_module(evaluator, path=None, name=None):
|
|||||||
raise
|
raise
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# If a module is "corrupt" or not really a Python module or whatever.
|
# If a module is "corrupt" or not really a Python module or whatever.
|
||||||
debug.warning('Module %s not importable.', path)
|
debug.warning('Module %s not importable in path %s.', dotted_path, path)
|
||||||
return None
|
return None
|
||||||
finally:
|
finally:
|
||||||
sys.path = temp
|
sys.path = temp
|
||||||
|
|||||||
Reference in New Issue
Block a user