Hello! I have a problem with that my program doesnt interrupt when I press CTRL+C. I figured out that it happens because I create a single connection for the whole time but I dont close the connection
(CTRL+C works if I open a new conn to db every time)
Here is my code:
app = {}
async def execute_query(query):
if not 'db' in app:
app['db'] = await aiosqlite.connect('...')
await app['db'].execute(query)
await app['db'].commit()
Thanks for help