Reverting change from r10429, because metadata is now always set after DB creation.

svn: r10486
This commit is contained in:
Zsolt Foldvari 2008-04-05 22:02:59 +00:00
parent 311278e6a8
commit abbd6781c1

View File

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