Exit on DBError for now

svn: r4661
This commit is contained in:
Don Allingham 2005-05-23 21:25:16 +00:00
parent 1e81e32965
commit 9273ca6886

View File

@ -1294,10 +1294,13 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
except ( IOError, OSError ), msg:
ErrorDialog(_('Cannot open database'),str(msg))
return 0
except db.DBAccessError, msg:
ErrorDialog(_('Cannot open database'),
_('%s could not be opened.' % filename) + '\n' + msg[1])
except (db.DBError), msg:
ErrorDialog(_('Cannot open database'),
_('%s could not be opened.' % filename) + '\n' + msg[1])
return 0
gtk.main_quit()
# Undo/Redo always start with standard labels and insensitive state
self.undo_callback(None)