Printing full traceback, as I can't find my error at all
This commit is contained in:
parent
f94fed38ea
commit
9595db645f
4
bot.py
4
bot.py
|
@ -3,6 +3,7 @@
|
|||
import discord
|
||||
from discord.ext import commands
|
||||
from cogs.utils import config
|
||||
import traceback
|
||||
|
||||
extensions = ['cogs.interaction',
|
||||
'cogs.core',
|
||||
|
@ -63,7 +64,8 @@ async def on_command_error(error, ctx):
|
|||
await bot.send_message(ctx.message.channel, fmt)
|
||||
else:
|
||||
fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```'
|
||||
await bot.send_message(ctx.message.channel, fmt.format(type(error).__name__, error))
|
||||
await bot.send_message(ctx.message.channel,traceback.format_exc())
|
||||
#await bot.send_message(ctx.message.channel, fmt.format(type(error).__name__, error))
|
||||
|
||||
if __name__ == '__main__':
|
||||
for e in extensions:
|
||||
|
|
Loading…
Reference in a new issue