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