From 0cc320ac9067b9c2fef24dcc4a41cb10a6615a59 Mon Sep 17 00:00:00 2001 From: Zsolt Foldvari Date: Mon, 31 Mar 2008 16:46:00 +0000 Subject: [PATCH] When new db was created metadata still contained no information, thus in dbdir.GrampsDBDir.__load the version check failed. svn: r10429 --- src/gen/db/dbdir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen/db/dbdir.py b/src/gen/db/dbdir.py index c5091d1e5..96ab99722 100644 --- a/src/gen/db/dbdir.py +++ b/src/gen/db/dbdir.py @@ -413,7 +413,7 @@ class GrampsDBDir(GrampsDbBase, UpdateCallback): def version_supported(self): try: - dbversion = self.metadata.get('version', default=0) + dbversion = self.metadata.get('version', default=_DBVERSION) return ((dbversion <= _DBVERSION) and (dbversion >= _MINVERSION)) except DBERRS, msg: self.__log_error()