mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-20 09:04:36 +01:00
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
Block a user