Spaces:
Build error
Build error
Update main.py
Browse files181 unmodified lines182183184185186187188189190191192181 unmodified linesresult_data = await response.text()return result_dataexcept (asyncio.TimeoutError, aiohttp.ClientError, requests.exceptions.HTTPError) as e:LoggaTesto("ERRORE ASYNC", {e})if isinstance(e, (asyncio.TimeoutError, requests.exceptions.HTTPError)) and e.response.status in [502, 504]:breakawait asyncio.sleep(1)raise Exception("Max retries reached or skipping retries. Unable to make the request.")async def CreaListaInput(input_data):181 unmodified lines182183184185186187188189190191181 unmodified linesresult_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.")async def CreaListaInput(input_data):
main.py+2-3