* src/ManagedWindow.py: mask strange Windows logging error on close

svn: r7179
This commit is contained in:
Brian Matherly 2006-08-15 03:12:14 +00:00
parent 31555811bb
commit 67ce7afca1
2 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,6 @@
2006-08-14 Brian Matherly <brian@gramps-project.org>
* src/gramps.py: mask strange Windows logging error on close
2006-08-14 Alex Roitman <shura@gramps-project.org>
* 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 <brian@gramps-project.org>
2006-08-13 Brian Matherly <brian@gramps-project.org>
* src/ManagedWindow.py: add present() to force parent focus (#0000342)
2006-08-13 Don Allingham <don@gramps-project.org>

View File

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