Spaces:
Sleeping
Sleeping
Update main.py
Browse files207 unmodified lines208209210211212213214215216207 unmodified linesexcept aiohttp.ContentTypeError:result_data = await response.text()return result_dataexcept (asyncio.TimeoutError, aiohttp.ClientError) as e:LoggaTesto("ERRORE ASYNC", {str(e)}, False)if isinstance(e, aiohttp.ClientError) and e.status in [502, 504]:breakawait asyncio.sleep(3)raise Exception("Max retries reached or skipping retries. Unable to make the request.")207 unmodified lines208209210211212213214215216207 unmodified linesexcept aiohttp.ContentTypeError:result_data = await response.text()return result_dataexcept (asyncio.TimeoutError, aiohttp.ClientError, requests.exceptions.HTTPError) as e:LoggaTesto("ERRORE ASYNC", {e}, False)if isinstance(e, (asyncio.TimeoutError, requests.exceptions.HTTPError)) and e.response.status in [502, 504]:breakawait asyncio.sleep(3)raise Exception("Max retries reached or skipping retries. Unable to make the request.")
main.py+3-3