added exception to attempted server connect
This commit is contained in:
parent
262f5e7d15
commit
7b4a3f2e7a
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -46,7 +46,7 @@ async def on_command_error(ctx: discord.ext.commands.context.Context, error: dis
|
||||||
elif isinstance(error, discord.ext.commands.MissingPermissions):
|
elif isinstance(error, discord.ext.commands.MissingPermissions):
|
||||||
await safeSend("You are missing " + ", ".join(error.missing_perms) + " permission(s) to run this command.", ctx=ctx)
|
await safeSend("You are missing " + ", ".join(error.missing_perms) + " permission(s) to run this command.", ctx=ctx)
|
||||||
elif isinstance(error, discord.ext.commands.CommandInvokeError):
|
elif isinstance(error, discord.ext.commands.CommandInvokeError):
|
||||||
print(error.__class__.__name__)
|
print(error.original.__class__.__name__)
|
||||||
await log(ctx, "Query failed, server down?")
|
await log(ctx, "Query failed, server down?")
|
||||||
else:
|
else:
|
||||||
raise error
|
raise error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue