mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 19:26:50 +00:00
tools/distro-tool: error on 400 series http status codes
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
parent
7b57ee7a3c
commit
509961e11d
@ -357,7 +357,7 @@ class MyUtility(object):
|
|||||||
while attempts < retries:
|
while attempts < retries:
|
||||||
if stopped.is_set(): break
|
if stopped.is_set(): break
|
||||||
attempts += 1
|
attempts += 1
|
||||||
(result, output) = MyUtility.runcommand(msgs, f"curl --silent --show-error --connect-timeout 30 --retry 3 --continue-at - --location --max-redirs 5 --output {filename_data} {url}", logfile=filename_log)
|
(result, output) = MyUtility.runcommand(msgs, f"curl --silent --show-error --fail --connect-timeout 30 --retry 3 --continue-at - --location --max-redirs 5 --output {filename_data} {url}", logfile=filename_log)
|
||||||
if result == 0:
|
if result == 0:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user