Skip to content

Commit

Permalink
Fix bug on rewriting files to utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrandje committed Oct 21, 2023
1 parent 635b10a commit ff970f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cartiflette/download/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,5 @@ def _gis_and_encoding_evaluation(self):
f"{self} - encoding={encoding}, "
"layer will be re-encoded to UTF8"
)
with open(file, "w", encoding="utf8"):
data.decode(encoding)
with open(file, "w", encoding="utf8") as f:
f.write(data.decode(encoding))

0 comments on commit ff970f9

Please sign in to comment.