Skip to content

Commit

Permalink
update to work with versions v3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandratrapani committed Jan 24, 2024
1 parent 0e27e4d commit ef182df
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def extract_extra_metadata(
if "=" in x
}
extra_metadata = dict(**extra_metadata, **system_metadata_dict)

additional_metadata_string = io.metadata().split("\n\n")[1]
additional_metadata = json.loads(additional_metadata_string)
extra_metadata = dict(**extra_metadata, **additional_metadata)
if "\n\n" in metadata_string:
additional_metadata_string = io.metadata().split("\n\n")[1]
additional_metadata = json.loads(additional_metadata_string)
extra_metadata = dict(**extra_metadata, **additional_metadata)
return extra_metadata


Expand Down

0 comments on commit ef182df

Please sign in to comment.