MatteoScript commited on
Commit
ff5fe5a
·
verified ·
1 Parent(s): 698ca10

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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}, false)
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)