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 2fce6de7e9
commit 9c1db9ff45

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