Skip to content

Commit

Permalink
[Fixes #20] add user create function
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Wallschlaeger committed May 6, 2024
1 parent 0455f24 commit e04b849
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions geonoderest/geonodeobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,12 @@ def cmd_patch(
if json_path:
with open(json_path, "r") as file:
try:
j_dict = json.load(file)
json_content = json.load(file)
except json.decoder.JSONDecodeError as E:
json_decode_error_handler(str(file), E)

if "attribute_set" in j_dict:
j_dict.pop("attribute_set", None)
json_content = {**json_content, **j_dict}
if "attribute_set" in json_content:
json_content.pop("attribute_set", None)

if fields:
try:
Expand Down

0 comments on commit e04b849

Please sign in to comment.