1
0
mirror of https://github.com/Mikaela/Limnoria.git synced 2025-04-05 23:37:51 +02:00

Raise the proper exception.

This commit is contained in:
Jeremy Fincher 2004-11-30 04:42:20 +00:00
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):