Skip to content

Commit 036045d

Browse files
committed
Merge branch 'remove-error' of https://github.com/umago/python-json-patch
Conflicts: jsonpatch.py
2 parents 48010ac + 32177f1 commit 036045d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jsonpatch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ def apply(self, obj):
387387
try:
388388
del subobj[part]
389389
except (KeyError, IndexError) as ex:
390-
raise JsonPatchConflict(str(ex))
390+
msg = "can't remove non-existent object '{0}'".format(part)
391+
raise JsonPatchConflict(msg)
391392

392393
return obj
393394

0 commit comments

Comments
 (0)