From 8a105f8901771d5f2aca094eb4806d4643a97d76 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 24 Oct 2006 02:41:02 +0000 Subject: [PATCH] 2006-10-23 Don Allingham * src/ReportBase/_BareReportDialog.py: declare logger. svn: r7429 --- ChangeLog | 3 +++ src/GrampsDb/_GrampsBSDDB.py | 5 ++++- src/ReportBase/_BareReportDialog.py | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f2e34cb8d..26e1b7f5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-10-23 Don Allingham + * src/ReportBase/_BareReportDialog.py: declare logger. + 2006-10-22 Don Allingham * src/DataViews/_PersonView.py: remove dead code * src/GrampsDb/_ReadGedcom.py: handle Legacy _PREF diff --git a/src/GrampsDb/_GrampsBSDDB.py b/src/GrampsDb/_GrampsBSDDB.py index 0cfa78891..6b1bbc9a6 100644 --- a/src/GrampsDb/_GrampsBSDDB.py +++ b/src/GrampsDb/_GrampsBSDDB.py @@ -1015,7 +1015,10 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback): self.env.close() - self.close_undodb() + try: + self.close_undodb() + except db.DBNoSuchFileError: + pass self.person_map = None self.family_map = None diff --git a/src/ReportBase/_BareReportDialog.py b/src/ReportBase/_BareReportDialog.py index 83ad84048..bba5f6018 100644 --- a/src/ReportBase/_BareReportDialog.py +++ b/src/ReportBase/_BareReportDialog.py @@ -49,6 +49,10 @@ from Filters import FilterComboBox,Rules from _StyleComboBox import StyleComboBox from _StyleEditor import StyleListDisplay +import logging + +log = logging.getLogger(".") + #------------------------------------------------------------------------- # # BareReportDialog class