Skip to content

Commit f467b2d

Browse files
committed
Print traceback on plugin import error to trigger traceback_available()
signal that should bring Internal Console to foreground (see rb1af139ff23f) Update issue 899 Status: New Internal console still doesn't pop up on start. Probably other console overrides focus event.
1 parent 202a7ea commit f467b2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spyderlib/otherplugins.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import os
1212
import os.path as osp
1313
import sys
14+
import traceback
1415

1516
# Local imports
1617
from spyderlib.utils import programs
@@ -51,8 +52,8 @@ def get_spyderplugins_mods(prefix, extension):
5152
try:
5253
__import__(name)
5354
modlist.append(sys.modules[name])
54-
except Exception, exc:
55+
except Exception:
5556
sys.stderr.write(
5657
"ERROR: 3rd party plugin import failed for `%s`\n" % modname)
57-
sys.stderr.write("---->: %s\n" % exc)
58+
traceback.print_exc(file=sys.stderr)
5859
return modlist

0 commit comments

Comments
 (0)