diff --git a/ChangeLog b/ChangeLog index 5812eebdf..7b7c921c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-11-25 Jim Sack + * src/ArgHandler.py : #1397 add except clause for GrampsDbException + applies to CLI (not) handling of grdb imports + 2007-11-25 Jim Sack * src/test/regrtest.py : really do the checkin this time diff --git a/src/ArgHandler.py b/src/ArgHandler.py index 656ce1a53..760eb978c 100644 --- a/src/ArgHandler.py +++ b/src/ArgHandler.py @@ -58,6 +58,7 @@ import QuestionDialog import Config import RecentFiles import Utils +import gen.db.exceptions as GX from PluginUtils import Tool, cl_list, cli_tool_list from ReportBase import CATEGORY_BOOK, CATEGORY_CODE, CATEGORY_WEB, cl_report @@ -481,6 +482,9 @@ class ArgHandler: try: GrampsDbUtils.gramps_db_reader_factory(const.APP_GRAMPS)( self.state.db,filename,empty) + except GX.GrampsDbException, e: + print "%s" % e.value + sys.exit(1) except: print "Error importing %s" % filename sys.exit(1)