diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 4d1a89bfb..2e1fb467d 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2006-08-14 Brian Matherly + * src/gramps.py: mask strange Windows logging error on close + 2006-08-14 Alex Roitman * src/docgen/PdfDoc.py: Work for both utf8 and latin-1 capable reportlab versions. @@ -13,7 +16,7 @@ * src/DispalyTabs/_NoteTab.py: don't add text window using viewport (#344) * src/DispalyTabs/_TextTab.py: don't add text window using viewport (#344) -2006-08-12 Brian Matherly +2006-08-13 Brian Matherly * src/ManagedWindow.py: add present() to force parent focus (#0000342) 2006-08-13 Don Allingham diff --git a/gramps2/src/gramps.py b/gramps2/src/gramps.py index 87634e8e2..27957f064 100644 --- a/gramps2/src/gramps.py +++ b/gramps2/src/gramps.py @@ -138,12 +138,12 @@ def setup_logging(): if type == KeyboardInterrupt: # Ctrl-C is not a bug. return + if type == IOError: + # strange Windows logging error on close + return import traceback - try: - log.error("Unhandled exception\n" + - "".join(traceback.format_exception(type, value, tb))) - except IOError: - pass + log.error("Unhandled exception\n" + + "".join(traceback.format_exception(type, value, tb))) sys.excepthook = exc_hook