Не могу понять в чем проблема
Код с ошибкойdef send_messange():
delete_query = "DELETE FROM music LIMIT 1"
cur.execute(delete_query)
con.commit()
schedule.every().day.at('19:09').do(send_messange)
while True: # этот цикл отсчитывает время. Он обязателен.
schedule.run_pending()
time.sleep(1)
Ошибки
Traceback (most recent call last):
File "C:\Users\danil\Desktop\MusicBot\main.py", line 148, in
schedule.run_pending()
File "C:\Users\danil\AppData\Local\Programs\Python\Python38\lib\site-packages\schedule\__init__.py", line 563, in run_pending
default_scheduler.run_pending()
File "C:\Users\danil\AppData\Local\Programs\Python\Python38\lib\site-packages\schedule\__init__.py", line 94, in run_pending
self._run_job(job)
File "C:\Users\danil\AppData\Local\Programs\Python\Python38\lib\site-packages\schedule\__init__.py", line 147, in _run_job
ret = job.run()
File "C:\Users\danil\AppData\Local\Programs\Python\Python38\lib\site-packages\schedule\__init__.py", line 466, in run
ret = self.job_func()
File "C:\Users\danil\Desktop\MusicBot\main.py", line 142, in send_messange
cur.execute(delete_query)
File "C:\Users\danil\AppData\Local\Programs\Python\Python38\lib\site-packages\pymysql\cursors.py", line 148, in execute
result = self._query(query)
File "C:\Users\danil\AppData\Local\Programs\Python\Python38\lib\site-packages\pymysql\cursors.py", line 310, in _query
conn.query(q)
File "C:\Users\danil\AppData\Local\Programs\Python\Python38\lib\site-packages\pymysql\connections.py", line 547, in query
self._execute_command(COMMAND.COM_QUERY, sql)
File "C:\Users\danil\AppData\Local\Programs\Python\Python38\lib\site-packages\pymysql\connections.py", line 793, in _execute_command
raise err.InterfaceError(0, "")
pymysql.err.InterfaceError: (0, '')
[Finished in 25.4s]