Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,9 @@ while True:
|
|
49 |
|
50 |
except requests.exceptions.HTTPError as http_err:
|
51 |
print(f'HTTP error occurred: {http_err}')
|
|
|
52 |
except requests.exceptions.RequestException as req_err:
|
53 |
print(f'Request error occurred: {req_err}')
|
|
|
54 |
|
55 |
time.sleep(120) # 120 seconds
|
|
|
49 |
|
50 |
except requests.exceptions.HTTPError as http_err:
|
51 |
print(f'HTTP error occurred: {http_err}')
|
52 |
+
result_string += f'\n\nHTTP error occurred: {http_err}'
|
53 |
except requests.exceptions.RequestException as req_err:
|
54 |
print(f'Request error occurred: {req_err}')
|
55 |
+
result_string += f'\n\nRequest error occurred: {req_err}'
|
56 |
|
57 |
time.sleep(120) # 120 seconds
|