From 7cd3ebaa77bb91096905aa69bb83dfde46995965 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sun, 13 Aug 2006 04:18:59 +0000 Subject: [PATCH] * src/gramps.py: catch logging error and ignore. svn: r7168 --- ChangeLog | 1 + src/gramps.py | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index cda740026..81e3031bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2006-08-12 Brian Matherly * src/plugins/FamilyGroup.py: use family_id instead of spouse_id + * src/gramps.py: catch logging error and ignore. 2006-08-12 Don Allingham * src/ReportBase/_FileEntry.py (FileEntry.select_file): force diff --git a/src/gramps.py b/src/gramps.py index 0ce7e387d..87634e8e2 100644 --- a/src/gramps.py +++ b/src/gramps.py @@ -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():