summaryrefslogtreecommitdiff
path: root/ick2/apibase.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-07-09 18:42:52 +0300
committerLars Wirzenius <liw@liw.fi>2018-07-09 18:42:52 +0300
commit36eb7ac25c14a7a6a3553f03bcfc76358b577993 (patch)
treee11616f8c0903a82573c4c28c9b1989ec1dd4048 /ick2/apibase.py
parentecc0b99d17c67a16cf20344e3f12a9c249a78c3a (diff)
downloadick2-36eb7ac25c14a7a6a3553f03bcfc76358b577993.tar.gz
Change: give NotMuch its optional args everywhere
Diffstat (limited to 'ick2/apibase.py')
-rw-r--r--ick2/apibase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ick2/apibase.py b/ick2/apibase.py
index aeda00b..9e3eaff 100644
--- a/ick2/apibase.py
+++ b/ick2/apibase.py
@@ -173,7 +173,7 @@ class ResourceApiBase(APIbase):
def update(self, body, name, **kwargs):
rid = self.get_resource_name(body)
if not self._trans.has_resource(self._type_name, rid):
- raise ick2.NotFound()
+ raise ick2.NotFound(kind=self._type_name, rid=rid)
with self._trans.modify(self._type_name, rid) as resource:
as_dict = self.mangle_updated_resource(resource.as_dict(), body)
@@ -186,5 +186,5 @@ class ResourceApiBase(APIbase):
def delete(self, name, **kwargs):
if not self._trans.has_resource(self._type_name, name):
- raise ick2.NotFound()
+ raise ick2.NotFound(kind=self._type_name, rid=name)
self._trans.remove_resource(self._type_name, name)