* src/gramps.py: catch logging error and ignore.

svn: r7168
This commit is contained in:
Brian Matherly
2006-08-13 04:18:59 +00:00
parent 8dbbc8a0b0
commit f98617dbf7
2 changed files with 7 additions and 3 deletions

View File

@@ -139,9 +139,12 @@ def setup_logging():
# Ctrl-C is not a bug.
return
import traceback
log.error("Unhandled exception\n" +
"".join(traceback.format_exception(type, value, tb)))
try:
log.error("Unhandled exception\n" +
"".join(traceback.format_exception(type, value, tb)))
except IOError:
pass
sys.excepthook = exc_hook
def run():