diff --git a/ChangeLog b/ChangeLog index 9f041380b..ff58012e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-06-24 Alex Roitman + * src/GrampsDb/_GrampsBSDDB.py (load): Typo. + * src/DbLoader.py (read_file): Fix error reporting. + 2007-06-23 Don Allingham * src/LdsUtils.py: switch to parsing an external XML file instead of hard coded values diff --git a/src/DbLoader.py b/src/DbLoader.py index 16db27c23..17a92c310 100644 --- a/src/DbLoader.py +++ b/src/DbLoader.py @@ -460,7 +460,6 @@ class DbLoader: self.dbstate.db.close() except Exception: _LOG.error("Failed to open database.", exc_info=True) - return True def open_saved_as(self, filename, filetype): diff --git a/src/GrampsDb/_GrampsBSDDB.py b/src/GrampsDb/_GrampsBSDDB.py index e69f0ab16..758fda95f 100644 --- a/src/GrampsDb/_GrampsBSDDB.py +++ b/src/GrampsDb/_GrampsBSDDB.py @@ -381,6 +381,7 @@ class GrampsBSDDB(GrampsDbBase, UpdateCallback): def version_supported(self): dbversion = self.metadata.get('version', default=0) + print dbversion return ((dbversion <= _DBVERSION) and (dbversion >= _MINVERSION)) def need_upgrade(self): @@ -434,7 +435,7 @@ class GrampsBSDDB(GrampsDbBase, UpdateCallback): # If we cannot work with this DB version, # it makes no sense to go further - if not self.version_supported: + if not self.version_supported(): self.__close_early() self.family_map = self.__open_table(self.full_name, "family")