summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kögl <stefan@skoegl.net>2013-07-12 19:28:39 +0200
committerStefan Kögl <stefan@skoegl.net>2013-07-12 19:28:39 +0200
commit923c013eff2bff42dae33fb0626e4dc530281eab (patch)
tree81d06ae8b076fa647be341cff4654be307c3fbc9
parentc781b515ed1a6590c7227ecd7f87fd2c7381366e (diff)
downloadpython-json-patch-923c013eff2bff42dae33fb0626e4dc530281eab.tar.gz
catch correct exception
-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