* src/GrampsDb/_GrampsBSDDB.py: handle data_map during

reload of the database


svn: r6432
This commit is contained in:
Don Allingham
2006-04-25 02:55:41 +00:00
parent 8b939198b8
commit d8628f28ee
2 changed files with 6 additions and 1 deletions

View File

@@ -1035,7 +1035,10 @@ class GrampsBSDDB(GrampsDbBase):
data = data_map.get(str(handle),txn=self.txn)
except:
data = None
log.error("Failed to get from handle",exc_info=True)
# under certain circumstances during a database reload,
# data_map can be none. If so, then don't report an error
if data_map:
log.error("Failed to get from handle",exc_info=True)
if data:
newobj = class_type()
newobj.unserialize(data)