added exception to attempted server connect

This commit is contained in:
bMorgan01 2021-11-29 15:27:48 -07:00
parent fb3ae5ddf4
commit 2d8e8c6b03

View file

@ -45,8 +45,7 @@ async def on_command_error(ctx: discord.ext.commands.context.Context, error: dis
await safeSend("Command \"" + ctx.message.content.split()[0] + "\" does not exist.", ctx=ctx)
elif isinstance(error, discord.ext.commands.MissingPermissions):
await safeSend("You are missing " + ", ".join(error.missing_perms) + " permission(s) to run this command.", ctx=ctx)
elif isinstance(error, discord.ext.commands.CommandInvokeError):
print(error.message)
elif isinstance(error, discord.ext.commands.CommandInvokeError) and "gaierror" in error.__class__.__name__:
await log(ctx, "Query failed, server down?")
else:
raise error