* 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

@ -1,5 +1,6 @@
2006-08-12 Brian Matherly <brian@gramps-project.org>
* src/plugins/FamilyGroup.py: use family_id instead of spouse_id
* src/gramps.py: catch logging error and ignore.
2006-08-12 Don Allingham <don@gramps-project.org>
* src/ReportBase/_FileEntry.py (FileEntry.select_file): force

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