Reverting change from r10429, because metadata is now always set after DB creation.
svn: r10486
This commit is contained in:
parent
311278e6a8
commit
abbd6781c1
@ -428,7 +428,7 @@ class GrampsDBDir(GrampsDbBase, UpdateCallback):
|
|||||||
|
|
||||||
def version_supported(self):
|
def version_supported(self):
|
||||||
try:
|
try:
|
||||||
dbversion = self.metadata.get('version', default=_DBVERSION)
|
dbversion = self.metadata.get('version', default=0)
|
||||||
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