You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/symroe/.envs/jsonpatch_test/lib/python3.6/site-packages/jsonpatch.py", line 385, in apply
del subobj[part]
IndexError: list assignment index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "jsonpatch_bug.py", line 18, in <module>
x.apply(to_v)
File "/Users/symroe/.envs/jsonpatch_test/lib/python3.6/site-packages/jsonpatch.py", line 312, in apply
obj = operation.apply(obj)
File "/Users/symroe/.envs/jsonpatch_test/lib/python3.6/site-packages/jsonpatch.py", line 388, in apply
raise JsonPatchConflict(msg)
jsonpatch.JsonPatchConflict: can't remove non-existent object '1'
It looks like having two identical dicts in a list causes this, when both dicts are removed from to_v.
The text was updated successfully, but these errors were encountered:
symroe
changed the title
:q
"can't remove non-existent object" exception with duplicate dicts in list
Jan 23, 2019
Here's a test case that fails in
1.23
:The exception is:
It looks like having two identical dicts in a list causes this, when both dicts are removed from
to_v
.The text was updated successfully, but these errors were encountered: