Exception in thread Thread-2988:
Exception in thread Thread-2987:
Traceback (most recent call last):
Traceback (most recent call last):
  File "C:\Users\Gena\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
  File "C:\Users\Gena\.virtualenvs\discord-q4ERoUCO\lib\site-packages\mysql\connector\cursor_cext.py", line 279, in execute
    self.run()
  File "C:\Users\Gena\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1378, in run
    result = self._cnx.cmd_query(
  File "C:\Users\Gena\.virtualenvs\discord-q4ERoUCO\lib\site-packages\mysql\connector\connection_cext.py", line 587, in cmd_query
    self.function(*self.args, **self.kwargs)
    return self.fetch_eof_status()
  File "D:\discord\package\time\timelocal.py", line 45, in timenows
  File "C:\Users\Gena\.virtualenvs\discord-q4ERoUCO\lib\site-packages\mysql\connector\connection_cext.py", line 510, in fetch_eof_status
    showdostime = package.setup.getsettings.timeingshowindows()
    "insert_id": self._cmysql.insert_id(),
  File "D:\discord\package\setup\getsettings.py", line 115, in timeingshowindows
_mysql_connector.MySQLInterfaceError: Lost connection to MySQL server during query
    selectsettingfromdatabase()
The above exception was the direct cause of the following exception:
  File "D:\discord\package\setup\getsettings.py", line 25, in selectsettingfromdatabase
Traceback (most recent call last):
    mycursor = myconnect.cursor(buffered=False)
  File "C:\Users\Gena\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
  File "C:\Users\Gena\.virtualenvs\discord-q4ERoUCO\lib\site-packages\mysql\connector\connection_cext.py", line 632, in cursor
    self.run()
    raise OperationalError("MySQL Connection not available.")
  File "C:\Users\Gena\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1378, in run
mysql.connector.errors.OperationalError: MySQL Connection not available.

программа иногда взбешивается и теряет конект с mySQL базой
что это может быть?