Catching error in restart command

pull/8/head
sgoudham 4 years ago
parent 9eaec6da73
commit bb409fce61

@ -184,9 +184,12 @@ async def restart(ctx):
colour=enso_embedmod_colours)
await ctx.send(embed=embed)
try:
client.db.terminate()
await client.db.wait_closed()
await client.logout()
except Exception as e:
print(e)
@client.command(name="reloadusers", hidden=True)

Loading…
Cancel
Save