mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-14 00:00:34 +02:00
Fixed retrying
This commit is contained in:
parent
f26168194b
commit
2abefc7cfa
@ -1492,7 +1492,9 @@ def get_file_by_url(url, retries=3, delay=10):
|
|||||||
print('No internet connection! Retrying in {} seconds'.format(delay))
|
print('No internet connection! Retrying in {} seconds'.format(delay))
|
||||||
time.sleep(delay)
|
time.sleep(delay)
|
||||||
retries -= 1
|
retries -= 1
|
||||||
return print("Problem getting file: ", url)
|
continue
|
||||||
|
break
|
||||||
|
print("Problem getting file: ", url)
|
||||||
|
|
||||||
|
|
||||||
def write_data(f, data):
|
def write_data(f, data):
|
||||||
|
Loading…
Reference in New Issue
Block a user