* src/GrampsDb/_GrampsBSDDB.py: handle data_map during
reload of the database svn: r6432
This commit is contained in:
parent
8cce2aa0e8
commit
faf6d52a06
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user