Unhandled exception on bot_handler
Traceback (most recent call last):
File "C:\Users\Kolbasa\AppData\Local\Programs\Python\Python311\Lib\site-packages\telethon\client\updates.py", line 497, in _dispatch_update
await callback(event)
File "C:\Users\Kolbasa\Desktop\Celvi\Celvi\main.py", line 253, in bot_handler
await mainMenu(mod_id)
File "C:\Users\Kolbasa\Desktop\Celvi\Celvi\main.py", line 229, in mainMenu
msg = await bot.send_message(mod_id, f"
**Главная**\n\nВаш канал:\n{get_mod_channel_name(mod_id)}", buttons=buttons)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kolbasa\Desktop\Celvi\Celvi\db.py", line 165, in get_mod_channel_name
return c.execute("SELECT name FROM channel_tags WHERE mod_id = ?", (mod_id,)).fetchone()[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable