summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jsonpatch.py2
1 files changed, 1 insertions, 1 deletions
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