🛑 Better exception handling

This commit is contained in:
NikolajDanger
2021-03-27 15:31:08 +01:00
parent 81b4eec190
commit 552f00ff32
2 changed files with 10 additions and 2 deletions

View File

@ -45,6 +45,7 @@ class MiscCog(commands.Cog):
self.client.funcs.stopServer()
logThis("Logging out.")
await self.client.logout()
else:
logThis(f"{ctx.message.author.display_name} tried to stop me! (error code 201)",str(ctx.message.channel.id))