1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-11-09 22:06:47 +00:00

Increase max_tries when scanning for updates.

This commit is contained in:
Markus Birth 2017-10-10 13:28:24 +02:00
parent 111286dc6e
commit f0c5c94ce9
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ with open("prds.txt", "rt") as f:
try:
fc.reset_session()
fc.curef = prd
check_xml = fc.do_check()
check_xml = fc.do_check(max_tries=20)
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
txt_tv = tv
if tv != lastver:

View File

@ -33,7 +33,7 @@ with open("prds.txt", "r") as f:
fc.reset_session()
fc.curef = prd
fc.fv = lastver
check_xml = fc.do_check()
check_xml = fc.do_check(max_tries=20)
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
print("{}: {}{} {} ({})".format(prd, fv, tv, fhash, model))
except RequestException as e: