mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Make tester delay slower
This commit is contained in:
parent
8671d69dd0
commit
57f798be41
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ class UptimeCompetition(commands.Cog):
|
|||
|
||||
def __init__(self, bot: commands.Bot):
|
||||
self.bot = bot
|
||||
self.http = AsyncClient()
|
||||
self.http = AsyncClient(verify=False)
|
||||
self._warning_posted = False
|
||||
self.test_uptimes.add_exception_type(Exception)
|
||||
self.test_uptimes.start()
|
||||
|
@ -134,7 +134,7 @@ class UptimeCompetition(commands.Cog):
|
|||
except (httpx.TimeoutException, httpx.HTTPStatusError, ConnectionError, TimeoutError) as err2:
|
||||
attempts += 1
|
||||
err = err2
|
||||
await asyncio.sleep(attempts)
|
||||
await asyncio.sleep(attempts * 0.25)
|
||||
continue
|
||||
else:
|
||||
return attempts, response
|
||||
|
|
Loading…
Reference in a new issue