Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -182,7 +182,7 @@ async def make_request(session, token, data, url, index, max_retries=3):
|
|
| 182 |
result_data = await response.text()
|
| 183 |
return result_data
|
| 184 |
except (asyncio.TimeoutError, aiohttp.ClientError, requests.exceptions.HTTPError) as e:
|
| 185 |
-
LoggaTesto("ERRORE ASYNC", {e},
|
| 186 |
if isinstance(e, (asyncio.TimeoutError, requests.exceptions.HTTPError)) and e.response.status in [502, 504]:
|
| 187 |
break
|
| 188 |
await asyncio.sleep(3)
|
|
|
|
| 182 |
result_data = await response.text()
|
| 183 |
return result_data
|
| 184 |
except (asyncio.TimeoutError, aiohttp.ClientError, requests.exceptions.HTTPError) as e:
|
| 185 |
+
LoggaTesto("ERRORE ASYNC", {e}, False)
|
| 186 |
if isinstance(e, (asyncio.TimeoutError, requests.exceptions.HTTPError)) and e.response.status in [502, 504]:
|
| 187 |
break
|
| 188 |
await asyncio.sleep(3)
|