From e6c9dce4404e6d59faba39a02b3d16f2dcd30ce0 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 22 Jan 2007 02:36:09 +0000 Subject: [PATCH] svn: r7950 --- gramps2/src/DbLoader.py | 3 +-- gramps2/src/GrampsWidgets.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gramps2/src/DbLoader.py b/gramps2/src/DbLoader.py index 1479c230c..e395eb382 100644 --- a/gramps2/src/DbLoader.py +++ b/gramps2/src/DbLoader.py @@ -54,7 +54,6 @@ import GrampsDb import Utils from PluginUtils import import_list import QuestionDialog -from Errors import GrampsDbException #------------------------------------------------------------------------- # @@ -418,7 +417,7 @@ class DbLoader: try: dbclass = GrampsDb.gramps_db_factory(db_type = filetype) - except GrampsDbException, msg: + except GrampsDb.GrampsDbException, msg: QuestionDialog.ErrorDialog( _("Could not open file: %s") % filename, _("This may be caused by an improper installation of GRAMPS.") + diff --git a/gramps2/src/GrampsWidgets.py b/gramps2/src/GrampsWidgets.py index ee17e75b1..5cb6c416c 100644 --- a/gramps2/src/GrampsWidgets.py +++ b/gramps2/src/GrampsWidgets.py @@ -2298,7 +2298,6 @@ if gtk.pygtk_version < (2,8,0): def main(args): - from RelLib import Date from DateHandler import parser def on_validate(widget, text):