Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Address byte encoding problem that cropped up in #658
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jun 10, 2021
1 parent 2a3ead9 commit 6cdbf73
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions vaccinate/core/exporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ def api_export_vaccinate_the_states() -> bool:
writer = VTS_DEPLOYS[deploy]
ok = True
try:
writer.write(
"locations.json",
(chunk.decode("utf-8") for chunk in json_response.streaming_content),
)
writer.write("locations.json", json_response.streaming_content)
writer.write("locations.geojson", iter([orjson.dumps(geojson)]))
for state, state_geojson in split_geojson_by_state(geojson):
writer.write(
Expand Down

0 comments on commit 6cdbf73

Please sign in to comment.