Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ignoring exception in command profile:
- Traceback (most recent call last):
- File "C:\Users\Vanya\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\core.py", line 83, in wrapped
- ret = await coro(*args, **kwargs)
- File "D:\Bot\Bot.py", line 73, in profile
- emb.add_field(name = 'Деньги:',value = f"""{cur.execute("SELECT cash FROM users WHERE ID = {0.id}".format(member)).fetchone()[0]}""")
- TypeError: 'NoneType' object is not subscriptable
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "C:\Users\Vanya\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\bot.py", line 892, in invoke
- await ctx.command.invoke(ctx)
- File "C:\Users\Vanya\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\core.py", line 797, in invoke
- await injected(*ctx.args, **ctx.kwargs)
- File "C:\Users\Vanya\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\core.py", line 92, in wrapped
- raise CommandInvokeError(exc) from exc
- discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: 'NoneType' object is not subscriptable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement