diff --git a/src/DbLoader.py b/src/DbLoader.py index 1479c230c..e395eb382 100644 --- a/src/DbLoader.py +++ b/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/src/GrampsWidgets.py b/src/GrampsWidgets.py index ee17e75b1..5cb6c416c 100644 --- a/src/GrampsWidgets.py +++ b/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):