Skip to content

Commit

Permalink
Fix error in fix_up_custom_units caused by modifying a dictionary whi…
Browse files Browse the repository at this point in the history
…le looping over its keys
  • Loading branch information
jon-ide committed Jul 12, 2024
1 parent 872196c commit fe65179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/home/utils/load_and_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ def collect_custom_units_from_additional_metadata(eml_node):

# Remove any custom units from the additionalMetadata node that are not in the attributes, i.e., that are no longer
# needed.
current_keys = custom_units_from_additional_metadata.keys()
current_keys = list(custom_units_from_additional_metadata.keys())
for key in current_keys:
if key not in custom_units_from_attributes:
del custom_units_from_additional_metadata[key]
Expand Down

0 comments on commit fe65179

Please sign in to comment.