Skip to content

Commit

Permalink
Merge pull request #157 from Replicable-MARL/fix_check_update
Browse files Browse the repository at this point in the history
fix dict update
  • Loading branch information
wwxFromTju committed Jul 25, 2023
2 parents 1ec9660 + be796b5 commit 203c203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marllib/marl/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def dict_update(target_dict: Dict, new_dict: Dict, check: bool = False) -> Dict:
raise ValueError("{} illegal, not in default config".format(key))
else: # update
target_dict[key] = value
if key in target_dict:
else:
target_dict[key] = value

return target_dict
Expand Down

0 comments on commit 203c203

Please sign in to comment.