From b53d5c65e025ef87cc126c5207678ac7619dbae1 Mon Sep 17 00:00:00 2001
From: "Joshua \"jag\" Ginsberg" <jag@flowtheory.net>
Date: Wed, 20 Feb 2019 18:56:41 -0500
Subject: [PATCH] Fixes to traceback calls in pycons
---
gnucash/python/pycons/shell.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnucash/python/pycons/shell.py b/gnucash/python/pycons/shell.py
index dfdc0d8ba0..33cff53592 100644
--- a/gnucash/python/pycons/shell.py
+++ b/gnucash/python/pycons/shell.py
@@ -166,8 +166,8 @@ def execute (self, console):
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()