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():