Skip to content

Commit

Permalink
Merge from 2.x: PR #334
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Nov 10, 2021
2 parents 6fd28e0 + 41387d8 commit 5bae6d3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion spyder_kernels/console/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
sys.path.remove(cwd)

from spyder_kernels.console import start
start.main()
try:
start.main()
except Exception:
# We have to explicitely write to __stderr__ as stderr might already
# have been replaced.
import traceback
traceback.print_exc(file=sys.__stderr__)
sys.__stderr__.flush()
raise

0 comments on commit 5bae6d3

Please sign in to comment.