Spaces:
Sleeping
Sleeping
Update main.py
Browse files181 unmodified lines182183184185185186187188189188189190191181 unmodified lines result_data = await response.text() return result_data except (asyncio.TimeoutError, aiohttp.ClientError, requests.exceptions.HTTPError) as e: LoggaTesto("ERRORE ASYNC", {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(1) await asyncio.sleep(3) raise Exception("Max retries reached or skipping retries. Unable to make the request.")
async def CreaListaInput(input_data):main.py+2-3