diff options
Diffstat (limited to 'jsonpatch.py')
| -rw-r--r-- | jsonpatch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonpatch.py b/jsonpatch.py index c614666..a46c9b0 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -466,7 +466,7 @@ class MoveOperation(PatchOperation): subobj, part = from_ptr.to_last(obj) value = subobj[part] - if self.pointer.contains(from_ptr): + if isinstance(subobj, dict) and self.pointer.contains(from_ptr): raise JsonPatchException('Cannot move values into its own children') obj = RemoveOperation({ |
