Fixes to traceback calls in pycons

This commit is contained in:
Joshua "jag" Ginsberg 2019-02-20 18:56:41 -05:00 committed by GitHub
parent b334366f63
commit b53d5c65e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,8 +166,8 @@ class Shell:
tb = sys.exc_traceback
if tb:
tb=tb.tb_next
traceback.print(_exception (sys.exc_type, sys.exc_value, tb))
traceback.print_exception(sys.exc_type, sys.exc_value, tb)
except:
sys.stderr, console.stderr = console.stderr, sys.stderr
traceback.print(_exc())
traceback.print_exc()