mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix tester
This commit is contained in:
parent
d4eabe2f54
commit
8671d69dd0
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue