mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +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:
|
try:
|
||||||
response = await self.http.get(url, timeout=timeout)
|
response = await self.http.get(url, timeout=timeout)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
except (httpx.TimeoutException, httpx.HTTPStatusError, ConnectionError, TimeoutError) as err:
|
except (httpx.TimeoutException, httpx.HTTPStatusError, ConnectionError, TimeoutError) as err2:
|
||||||
attempts += 1
|
attempts += 1
|
||||||
|
err = err2
|
||||||
|
await asyncio.sleep(attempts)
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
return attempts, response
|
return attempts, response
|
||||||
|
|
Loading…
Reference in a new issue