mirror of https://github.com/Mikaela/Limnoria.git
Raise the proper exception.
This commit is contained in:
parent
62b5dd8120
commit
54b56a8a53
|
@ -237,7 +237,10 @@ class CdbMapping(MappingInterface):
|
|||
return i
|
||||
|
||||
def get(self, id):
|
||||
return self.db[str(id)]
|
||||
try:
|
||||
return self.db[str(id)]
|
||||
except KeyError:
|
||||
raise NoRecordError, id
|
||||
|
||||
# XXX Same as above.
|
||||
def set(self, id, s):
|
||||
|
|
Loading…
Reference in New Issue