From d678156e257cf0f74938f8f0c435f3768aa10fd2 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sat, 28 Apr 2007 03:10:16 +0000 Subject: [PATCH] Fix exception message in DbLoader.py. svn: r8426 --- gramps2/ChangeLog | 3 +++ gramps2/src/DbLoader.py | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index b9d809122..58ec6d234 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2007-04-27 Brian Matherly + * src/DbLoader.py: Fix exception message. + 2007-04-22 Don Allingham * configure.in: bump to full release of 2.2.7 * src/const.py.in: fix 2007 in copyright diff --git a/gramps2/src/DbLoader.py b/gramps2/src/DbLoader.py index 9f9f4113f..076aa1864 100644 --- a/gramps2/src/DbLoader.py +++ b/gramps2/src/DbLoader.py @@ -462,10 +462,9 @@ class DbLoader: "problem persists, create a new database, import " "from a backup database, and report the problem to " "gramps-bugs@lists.sourceforge.net.")) - except: + except Exception, msg: QuestionDialog.ErrorDialog( - _("Could not open file: %s") % filename, - str(msg[1])) + _("Could not open file: %s") % filename, msg ) return True def open_saved_as(self, filename, filetype):