Spaces:
Sleeping
Sleeping
Update main.py
Browse files207 unmodified lines208209210211212213211212213214215216207 unmodified lines except aiohttp.ContentTypeError: result_data = await response.text() return result_data except (asyncio.TimeoutError, aiohttp.ClientError) as e: LoggaTesto("ERRORE ASYNC", {str(e)}, False) if isinstance(e, aiohttp.ClientError) and e.status in [502, 504]: except (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]: break await asyncio.sleep(3) raise Exception("Max retries reached or skipping retries. Unable to make the request.")main.py+3-3