From 92c76537d6d2bb82d083ab2d2029b5a108149c99 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 5 Feb 2018 19:18:54 +0100 Subject: [PATCH] print_to_stderr needs to be used with one argument See #1010. --- jedi/evaluate/compiled/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/evaluate/compiled/access.py b/jedi/evaluate/compiled/access.py index c8e5d4f7..2d4c2e8c 100644 --- a/jedi/evaluate/compiled/access.py +++ b/jedi/evaluate/compiled/access.py @@ -152,7 +152,7 @@ def load_module(evaluator, path=None, name=None, sys_path=None): # Since __import__ pretty much makes code execution possible, just # catch any error here and print it. import traceback - print_to_stderr("Cannot import:\n", traceback.format_exc()) + print_to_stderr("Cannot import:\n%s" % traceback.format_exc()) return None finally: sys.path = temp