sqlite3.OperationalError: no such table: subscriptions
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-136' coro=<Dispatcher._process_polling_updates() done, defined at /home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py:380> exception=OperationalError('no such table: subscriptions')>
Traceback (most recent call last):
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 388, in _process_polling_updates
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 225, in process_updates
return await asyncio.gather(*tasks)
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 246, in process_update
return await self.message_handlers.notify(update.message)
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "bot.py", line 39, in unsubscribe
if(not db.subscriber_exists(message.from_user.id)):
File "/home/user/Home/ASITES/python/ddghbot/sqlighter.py", line 18, in subscriber_exists
result = self.cursor.execute('SELECT * FROM `subscriptions` WHERE `user_id` = ?', (user_id,)).fetchall()
sqlite3.OperationalError: no such table: subscriptions
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-139' coro=<Dispatcher._process_polling_updates() done, defined at /home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py:380> exception=OperationalError('no such table: subscriptions')>
Traceback (most recent call last):
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 388, in _process_polling_updates
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 225, in process_updates
return await asyncio.gather(*tasks)
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 246, in process_update
return await self.message_handlers.notify(update.message)
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "bot.py", line 39, in unsubscribe
if(not db.subscriber_exists(message.from_user.id)):
File "/home/user/Home/ASITES/python/ddghbot/sqlighter.py", line 18, in subscriber_exists
result = self.cursor.execute('SELECT * FROM `subscriptions` WHERE `user_id` = ?', (user_id,)).fetchall()
sqlite3.OperationalError: no such table: subscriptions
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-192' coro=<Dispatcher._process_polling_updates() done, defined at /home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py:380> exception=OperationalError('no such table: subscriptions')>
Traceback (most recent call last):
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 388, in _process_polling_updates
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 225, in process_updates
return await asyncio.gather(*tasks)
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 246, in process_update
return await self.message_handlers.notify(update.message)
File "/home/user/Home/ASITES/python/ddghbot/venv/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "bot.py", line 27, in subscribe
if(not db.subscriber_exists(message.from_user.id)):
File "/home/user/Home/ASITES/python/ddghbot/sqlighter.py", line 18, in subscriber_exists
result = self.cursor.execute('SELECT * FROM `subscriptions` WHERE `user_id` = ?', (user_id,)).fetchall()
sqlite3.OperationalError: no such table: subscriptions