1
0

Revert "work around encoding errors with chinese text in check response"

This reverts commit 79357d7fddbde9384aadba9408d6ca1a4c81f948.
This commit is contained in:
Markus Birth 2017-11-03 11:43:55 +01:00
parent 79357d7fdd
commit 0446ac89e5

View File

@ -145,7 +145,7 @@ class FotaCheck:
except OSError as e:
if e.errno != errno.EEXIST:
raise
with open(outfile, "w", encoding="utf-8") as f:
with open(outfile, "w") as f:
f.write(data)
def do_check(self, https=True, timeout=10, max_tries=5):