MrShandy

error

Mar 2nd, 2021
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. Ignoring exception in on_message
  2. Traceback (most recent call last):
  3. File "c:\Users\MrShandy\Documents\GitHub\simple-voice\bot.py", line 20, in get_prefix
  4. cur.execute(f"SELECT prefix FROM simple_voice.server_{message.guild.id};")
  5. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\pymysql\cursors.py", line 148, in execute
  6. result = self._query(query)
  7. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\pymysql\cursors.py", line 310, in _query
  8. conn.query(q)
  9. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\pymysql\connections.py", line 547, in query
  10. self._execute_command(COMMAND.COM_QUERY, sql)
  11. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\pymysql\connections.py", line 793, in _execute_command
  12. raise err.InterfaceError(0, "")
  13. pymysql.err.InterfaceError: (0, '')
  14.  
  15. During handling of the above exception, another exception occurred:
  16.  
  17. Traceback (most recent call last):
  18. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 343, in _run_event
  19. await coro(*args, **kwargs)
  20. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 942, in on_message
  21. await self.process_commands(message)
  22. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 938, in process_commands
  23. ctx = await self.get_context(message)
  24. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 852, in get_context
  25. prefix = await self.get_prefix(message)
  26. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 797, in get_prefix
  27. ret = await discord.utils.maybe_coroutine(prefix, self, message)
  28. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\utils.py", line 329, in maybe_coroutine
  29. value = f(*args, **kwargs)
  30. File "c:\Users\MrShandy\Documents\GitHub\simple-voice\bot.py", line 22, in get_prefix
  31. return row
  32. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\pymysql\connections.py", line 360, in __exit__
  33. self.close()
  34. File "C:\Users\MrShandy\AppData\Local\Programs\Python\Python39\lib\site-packages\pymysql\connections.py", line 404, in close
  35. raise err.Error("Already closed")
  36. pymysql.err.Error: Already closed
Advertisement
Add Comment
Please, Sign In to add comment