Skip to content

Commit 6fcac5d

Browse files
author
Richard Jones
committed
memorydb API consistency fix
1 parent a35068b commit 6fcac5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/memorydb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def exists(self, infoid):
118118
def get(self, infoid, value, default=None):
119119
return self[infoid].get(value, default)
120120
def getall(self, infoid):
121+
if infoid not in self:
122+
raise KeyError(infoid)
121123
return self[infoid]
122124
def set(self, infoid, **newvalues):
123125
self[infoid].update(newvalues)

0 commit comments

Comments
 (0)