From 923c013eff2bff42dae33fb0626e4dc530281eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Fri, 12 Jul 2013 19:28:39 +0200 Subject: catch correct exception --- jsonpatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonpatch.py b/jsonpatch.py index cd946ce..df4ea4b 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -353,7 +353,7 @@ class RemoveOperation(PatchOperation): subobj, part = self.pointer.to_last(obj) try: del subobj[part] - except KeyError as ex: + except IndexError as ex: raise JsonPatchConflict(str(ex)) return obj -- cgit v1.2.1