Skip to content
Snippets Groups Projects
Commit 6d4e6d4c authored by Kegan Dougal's avatar Kegan Dougal
Browse files

Also check for dict since sometimes they aren't frozen

parent cea4e4e7
Branches
Tags
No related merge requests found
...@@ -132,7 +132,7 @@ def _copy_field(src, dst, field): ...@@ -132,7 +132,7 @@ def _copy_field(src, dst, field):
key_to_move = field.pop(-1) key_to_move = field.pop(-1)
sub_dict = src sub_dict = src
for sub_field in field: # e.g. sub_field => "content" for sub_field in field: # e.g. sub_field => "content"
if sub_field in sub_dict and type(sub_dict[sub_field]) == frozendict: if sub_field in sub_dict and type(sub_dict[sub_field]) in [dict, frozendict]:
sub_dict = sub_dict[sub_field] sub_dict = sub_dict[sub_field]
else: else:
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment