From 41f8df9a94f99477d4fc11e7861aaf22f85a0f91 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 12 Nov 2013 21:50:10 -0500 Subject: [PATCH] Don't show stack variables; redo this and dump to a file --- gramps/grampsapp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/grampsapp.py b/gramps/grampsapp.py index cbc533b00..afd62ddca 100644 --- a/gramps/grampsapp.py +++ b/gramps/grampsapp.py @@ -109,9 +109,11 @@ def exc_hook(type, value, tb): if type == IOError: # strange Windows logging error on close return - from gramps.gen.utils.debug import format_exception + #Use this to show variables in each frame: + #from gramps.gen.utils.debug import format_exception + import traceback LOG.error("Unhandled exception\n" + - "".join(format_exception(type, value, tb))) + "".join(traceback.format_exception(type, value, tb))) sys.excepthook = exc_hook