gnucash maint: Fixes to traceback calls in pycons
Geert Janssens
gjanssens at code.gnucash.org
Thu Feb 21 03:55:57 EST 2019
Updated via https://github.com/Gnucash/gnucash/commit/b53d5c65 (commit)
from https://github.com/Gnucash/gnucash/commit/b334366f (commit)
commit b53d5c65e025ef87cc126c5207678ac7619dbae1
Author: Joshua "jag" Ginsberg <jag at flowtheory.net>
Date: Wed Feb 20 18:56:41 2019 -0500
Fixes to traceback calls in pycons
diff --git a/gnucash/python/pycons/shell.py b/gnucash/python/pycons/shell.py
index dfdc0d8ba..33cff5359 100644
--- a/gnucash/python/pycons/shell.py
+++ b/gnucash/python/pycons/shell.py
@@ -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()
Summary of changes:
gnucash/python/pycons/shell.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list