forked from VimPlug/jedi
@@ -152,7 +152,7 @@ def load_module(evaluator, path=None, name=None, sys_path=None):
|
|||||||
# Since __import__ pretty much makes code execution possible, just
|
# Since __import__ pretty much makes code execution possible, just
|
||||||
# catch any error here and print it.
|
# catch any error here and print it.
|
||||||
import traceback
|
import traceback
|
||||||
print_to_stderr("Cannot import:\n", traceback.format_exc())
|
print_to_stderr("Cannot import:\n%s" % traceback.format_exc())
|
||||||
return None
|
return None
|
||||||
finally:
|
finally:
|
||||||
sys.path = temp
|
sys.path = temp
|
||||||
|
|||||||
Reference in New Issue
Block a user