Don't show stack variables; redo this and dump to a file

This commit is contained in:
Doug Blank 2013-11-12 21:50:10 -05:00
parent 732743cec5
commit 41f8df9a94

View File

@ -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