From 9c1db9ff4542236a11a897c5745a075ae3b4723d Mon Sep 17 00:00:00 2001 From: Richard Taylor Date: Sat, 17 Dec 2005 12:44:06 +0000 Subject: [PATCH] work around for difference cursor.set behaviour svn: r5569 --- gramps2/src/GrampsBSDDB.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/src/GrampsBSDDB.py b/gramps2/src/GrampsBSDDB.py index 9209209d6..43b3b69b3 100644 --- a/gramps2/src/GrampsBSDDB.py +++ b/gramps2/src/GrampsBSDDB.py @@ -513,8 +513,11 @@ class GrampsBSDDB(GrampsDbBase): existing_references = set() primary_cur = self.get_reference_map_primary_cursor() - - ret = primary_cur.set(handle) + + try: + ret = primary_cur.set(handle) + except: + ret = None while (ret is not None): (key,data) = ret