Bug 003611: delete/undo/delete sequence causes crash
svn: r14389
This commit is contained in:
parent
7392cac134
commit
cd90261ff0
@ -1312,9 +1312,9 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
|
|||||||
cursor.set(name)
|
cursor.set(name)
|
||||||
if cursor.count() == 1:
|
if cursor.count() == 1:
|
||||||
i = bisect.bisect(self.surname_list, name)
|
i = bisect.bisect(self.surname_list, name)
|
||||||
assert 0 <= i-1 < len(self.surname_list)
|
if 0 <= i-1 < len(self.surname_list):
|
||||||
del self.surname_list[i-1]
|
del self.surname_list[i-1]
|
||||||
except ValueError:
|
except:
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user