* 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 9c21616e00
commit 7cd3ebaa77
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -139,9 +139,12 @@ def setup_logging():
# Ctrl-C is not a bug. # Ctrl-C is not a bug.
return return
import traceback import traceback
log.error("Unhandled exception\n" + try:
"".join(traceback.format_exception(type, value, tb))) log.error("Unhandled exception\n" +
"".join(traceback.format_exception(type, value, tb)))
except IOError:
pass
sys.excepthook = exc_hook sys.excepthook = exc_hook
def run(): def run():