Added additional BSDDB exception case

svn: r4658
This commit is contained in:
Don Allingham 2005-05-23 20:31:56 +00:00
parent 3ed52a7ed6
commit 59d4cfa35e

View File

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