Catch db.DBError

svn: r4660
This commit is contained in:
Don Allingham 2005-05-23 21:08:29 +00:00
parent 32b8401167
commit 1e81e32965

View File

@ -1294,7 +1294,7 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
except ( IOError, OSError ), msg:
ErrorDialog(_('Cannot open database'),str(msg))
return 0
except (db.DBAccessError,DBRunRecoveryError), msg:
except (db.DBError), msg:
ErrorDialog(_('Cannot open database'),
_('%s could not be opened.' % filename) + '\n' + msg[1])
return 0