def __error(self, ctx, error):
if isinstance(error, commands.CommandInvokeError):
logger.exception('Image processing error:')
await ctx.send('Something went wrong processing your image. Sorry about that!')
error.should_suppress = True
elif isinstance(error, asyncio.TimeoutError):
await ctx.send('Your image took too long to process...')
error.should_suppress = True
评论列表
文章目录