* src/GrampsDb/_GrampsBSDDB.py: handle data_map during
reload of the database svn: r6432
This commit is contained in:
parent
8b939198b8
commit
d8628f28ee
@ -1,4 +1,6 @@
|
|||||||
2006-04-24 Don Allingham <don@gramps-project.org>
|
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/DataViews/_FamilyView.py: Config changes
|
||||||
* src/ViewManager.py: Config changes
|
* src/ViewManager.py: Config changes
|
||||||
* src/GrampsDb/_GrampsDbBase.py: Config changes
|
* src/GrampsDb/_GrampsDbBase.py: Config changes
|
||||||
|
@ -1035,6 +1035,9 @@ class GrampsBSDDB(GrampsDbBase):
|
|||||||
data = data_map.get(str(handle),txn=self.txn)
|
data = data_map.get(str(handle),txn=self.txn)
|
||||||
except:
|
except:
|
||||||
data = None
|
data = None
|
||||||
|
# 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)
|
log.error("Failed to get from handle",exc_info=True)
|
||||||
if data:
|
if data:
|
||||||
newobj = class_type()
|
newobj = class_type()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user