work around for difference cursor.set behaviour

svn: r5569
This commit is contained in:
Richard Taylor 2005-12-17 12:44:06 +00:00
parent e68a559e74
commit 1a42ccf0fd

View File

@ -514,7 +514,10 @@ class GrampsBSDDB(GrampsDbBase):
primary_cur = self.get_reference_map_primary_cursor() primary_cur = self.get_reference_map_primary_cursor()
try:
ret = primary_cur.set(handle) ret = primary_cur.set(handle)
except:
ret = None
while (ret is not None): while (ret is not None):
(key,data) = ret (key,data) = ret