5368: Loading familytree with downgraded Berkeley db should generate expressive error

svn: r18467
This commit is contained in:
Michiel Nauta
2011-11-20 09:33:31 +00:00
parent 7240d64278
commit 32b5905aea
4 changed files with 66 additions and 4 deletions

View File

@@ -309,6 +309,9 @@ class DbLoader(CLIDbLoader):
self.dbstate.db.set_save_path(filename)
else:
self.dbstate.no_database()
except gen.db.exceptions.BsddbDowngradeError, msg:
self.dbstate.no_database()
self._errordialog( _("Cannot open database"), str(msg))
except gen.db.exceptions.DbVersionError, msg:
self.dbstate.no_database()
self._errordialog( _("Cannot open database"), str(msg))