From b099d9e37b105653c5b0ea99c27e6c90f4c8b74d 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 --- gramps2/ChangeLog | 3 +++ gramps2/src/GrampsDb/_GrampsBSDDB.py | 5 ++++- gramps2/src/ReportBase/_BareReportDialog.py | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index f2e34cb8d..26e1b7f5e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/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/gramps2/src/GrampsDb/_GrampsBSDDB.py b/gramps2/src/GrampsDb/_GrampsBSDDB.py index 0cfa78891..6b1bbc9a6 100644 --- a/gramps2/src/GrampsDb/_GrampsBSDDB.py +++ b/gramps2/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/gramps2/src/ReportBase/_BareReportDialog.py b/gramps2/src/ReportBase/_BareReportDialog.py index 83ad84048..bba5f6018 100644 --- a/gramps2/src/ReportBase/_BareReportDialog.py +++ b/gramps2/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