Skip to content

Commit 989e78d

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent ffa404c commit 989e78d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roundup/backends/back_anydbm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.146.2.15 2004-07-20 23:27:02 richard Exp $
18+
#$Id: back_anydbm.py,v 1.146.2.16 2004-07-21 00:51:49 richard Exp $
1919
'''This module defines a backend that saves the hyperdatabase in a
2020
database chosen by anydbm. It is guaranteed to always be available in python
2121
versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
@@ -1430,6 +1430,8 @@ def lookup(self, keyvalue):
14301430
node = self.db.getnode(self.classname, nodeid, cldb)
14311431
if node.has_key(self.db.RETIRED_FLAG):
14321432
continue
1433+
if not node.has_key(self.key):
1434+
continue
14331435
if node[self.key] == keyvalue:
14341436
return nodeid
14351437
finally:

0 commit comments

Comments
 (0)