diff options
author | Stefan Kögl <stefan@skoegl.net> | 2013-07-12 19:28:39 +0200 |
---|---|---|
committer | Stefan Kögl <stefan@skoegl.net> | 2013-07-12 19:28:39 +0200 |
commit | 923c013eff2bff42dae33fb0626e4dc530281eab (patch) | |
tree | 81d06ae8b076fa647be341cff4654be307c3fbc9 | |
parent | c781b515ed1a6590c7227ecd7f87fd2c7381366e (diff) | |
download | python-json-patch-923c013eff2bff42dae33fb0626e4dc530281eab.tar.gz |
catch correct exception
-rw-r--r-- | jsonpatch.py | 2 |
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 |