mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-10 06:16:46 +00:00
Revert "work around encoding errors with chinese text in check response"
This reverts commit 79357d7fdd
.
This commit is contained in:
parent
79357d7fdd
commit
0446ac89e5
@ -145,7 +145,7 @@ class FotaCheck:
|
|||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno != errno.EEXIST:
|
if e.errno != errno.EEXIST:
|
||||||
raise
|
raise
|
||||||
with open(outfile, "w", encoding="utf-8") as f:
|
with open(outfile, "w") as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
|
|
||||||
def do_check(self, https=True, timeout=10, max_tries=5):
|
def do_check(self, https=True, timeout=10, max_tries=5):
|
||||||
|
Loading…
Reference in New Issue
Block a user