Fix tester

This commit is contained in:
nex 2023-01-26 16:18:22 +00:00
parent d4eabe2f54
commit 8671d69dd0

View file

@ -131,8 +131,10 @@ class UptimeCompetition(commands.Cog):
try:
response = await self.http.get(url, timeout=timeout)
response.raise_for_status()
except (httpx.TimeoutException, httpx.HTTPStatusError, ConnectionError, TimeoutError) as err:
except (httpx.TimeoutException, httpx.HTTPStatusError, ConnectionError, TimeoutError) as err2:
attempts += 1
err = err2
await asyncio.sleep(attempts)
continue
else:
return attempts, response