wait 5 seconds before reconnection atempt
This commit is contained in:
parent
d956760e4c
commit
52ca77e67c
|
@ -104,6 +104,7 @@ async def query_database():
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger_discord.error('Cannot connect to the database!')
|
logger_discord.error('Cannot connect to the database!')
|
||||||
logger_discord.error(e)
|
logger_discord.error(e)
|
||||||
|
await asyncio.sleep(5)
|
||||||
return
|
return
|
||||||
|
|
||||||
if database == {}:
|
if database == {}:
|
||||||
|
|
Loading…
Reference in a new issue