Hej
Od pewnego czasu zmagam się z losowymi crashami aplikacji i już nie wiem co może być przyczyną, poniżej logi z konsoli w momencie zatrzymania się aplikacji
raise errors.InternalError("Unread result found")
mysql.connector.errors.InternalError: Unread result found
Exception in thread Thread-8910:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 950, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.9/threading.py", line 888, in run
self._target(*self._args, **self._kwargs)
File "/home/xxx/.local/lib/python3.9/site-packages/blinker/base.py", line 266, in send
return [(receiver, receiver(sender, **kwargs))
File "/home/xxx/.local/lib/python3.9/site-packages/blinker/base.py", line 266, in <listcomp>
return [(receiver, receiver(sender, **kwargs))
File "/home/xxx/pointsbot/main.py", line 149, in on_event
cursor.execute(f'SELECT points FROM clients WHERE id = {cldbid}')
File "/home/xxx/.local/lib/python3.9/site-packages/mysql/connector/cursor.py", line 547, in execute
self._connection.handle_unread_result()
File "/home/xxxx/.local/lib/python3.9/site-packages/mysql/connector/connection.py", line 1286, in handle_unread_result
raise errors.InternalError("Unread result found")
mysql.connector.errors.InternalError: Unread result found