Advertisement
Guest User

Untitled

a guest
Jul 31st, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. Ignoring exception in command profile:
  2. Traceback (most recent call last):
  3. File "C:\Users\Vanya\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\core.py", line 83, in wrapped
  4. ret = await coro(*args, **kwargs)
  5. File "D:\Bot\Bot.py", line 73, in profile
  6. emb.add_field(name = 'Деньги:',value = f"""{cur.execute("SELECT cash FROM users WHERE ID = {0.id}".format(member)).fetchone()[0]}""")
  7. TypeError: 'NoneType' object is not subscriptable
  8.  
  9. The above exception was the direct cause of the following exception:
  10.  
  11. Traceback (most recent call last):
  12. File "C:\Users\Vanya\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\bot.py", line 892, in invoke
  13. await ctx.command.invoke(ctx)
  14. File "C:\Users\Vanya\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\core.py", line 797, in invoke
  15. await injected(*ctx.args, **ctx.kwargs)
  16. File "C:\Users\Vanya\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\core.py", line 92, in wrapped
  17. raise CommandInvokeError(exc) from exc
  18. 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