Ошибка при работе с sqlite3: no such table
Код достаточно большой, поэтому выделю именно ту часть, на которую он ругается. Могу скинуть полный код в комменты (1000+ строк)):
if call.data == 'del_section_to_catalog':
if chat_id == settings.admin_id:
conn = sqlite3.connect("base_ts.sqlite")
cursor = conn.cursor()
cursor.execute('SELECT * FROM catalog')
row = cursor.fetchall()
cursor.close()
conn.close()
text = ''
num = 0
for i in row:
text = text + '№ ' + str(num) + ' | ' + str(i[0]) + '\n'
num += 1
ошибка, которую он выдает:
cursor.execute('SELECT * FROM catalog')
sqlite3.OperationalError: no such table: catalog