* 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 8cce2aa0e8
commit faf6d52a06
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,6 @@
2006-04-24 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py: handle data_map during
reload of the database
* src/DataViews/_FamilyView.py: Config changes
* src/ViewManager.py: Config changes
* src/GrampsDb/_GrampsDbBase.py: Config changes

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)