Skip to content

Commit

Permalink
fix wrong request content/bytes to text/str type
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Nov 10, 2023
1 parent 0d99de2 commit 3cd9e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STACpopulator/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def extract_metadata(self, ds: siphon.catalog.Dataset) -> MutableMapping[str, An
url = ds.access_urls["NCML"]
r = requests.get(url)
# Convert NcML to CF-compliant dictionary
attrs = xncml.Dataset.from_text(r.content).to_cf_dict()
attrs = xncml.Dataset.from_text(r.text).to_cf_dict()
attrs["attributes"] = numpy_to_python_datatypes(attrs["attributes"])
attrs["access_urls"] = ds.access_urls
return attrs
Expand Down

0 comments on commit 3cd9e24

Please sign in to comment.