When new db was created metadata still contained no information, thus in

dbdir.GrampsDBDir.__load the version check failed.


svn: r10429
This commit is contained in:
Zsolt Foldvari 2008-03-31 16:46:00 +00:00
parent 6dfbb37562
commit 0cc320ac90

View File

@ -413,7 +413,7 @@ class GrampsDBDir(GrampsDbBase, UpdateCallback):
def version_supported(self): def version_supported(self):
try: try:
dbversion = self.metadata.get('version', default=0) dbversion = self.metadata.get('version', default=_DBVERSION)
return ((dbversion <= _DBVERSION) and (dbversion >= _MINVERSION)) return ((dbversion <= _DBVERSION) and (dbversion >= _MINVERSION))
except DBERRS, msg: except DBERRS, msg:
self.__log_error() self.__log_error()