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:
parent
6dfbb37562
commit
0cc320ac90
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user