'NoneType' object is not subscriptable
Traceback (most recent call last):
File "C:\Users\alexs\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 283, in process_update
return await self.callback_query_handlers.notify(update.callback_query)
File "C:\Users\alexs\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "C:\Users\alexs\OneDrive\Рабочий стол\AutoShop-2.4.3\tgbot\handlers\admin_functions.py", line 688, in settings_open
await call.message.edit_text("<b>
Основные настройки бота.</b>", reply_markup=await settings_inl())
File "C:\Users\alexs\OneDrive\Рабочий стол\AutoShop-2.4.3\tgbot\keyboards\inline_admin.py", line 420, in settings_inl
kb.append(InlineKeyboardButton(f"Язык по умолчанию | {default_language['name']}", callback_data="default_lang:edit"))
TypeError: 'NoneType' object is not subscriptable
base_events.py [LINE:1738] #ERROR [2024-03-28 15:38:54,087] Task exception was never retrieved
future: <Task finished name='Task-50' coro=<Dispatcher._process_polling_updates() done, defined at C:\Users\alexs\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py:407> exception=TypeError("'NoneType' object is not subscriptable")>
Traceback (most recent call last):
File "C:\Users\alexs\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 258, in __step
result = coro.throw(exc)
File "C:\Users\alexs\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 415, in _process_polling_updates
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
File "C:\Users\alexs\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 235, in process_updates
return await asyncio.gather(*tasks)
File "C:\Users\alexs\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 328, in __wakeup
future.result()
File "C:\Users\alexs\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 256, in __step
result = coro.send(None)
File "C:\Users\alexs\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "C:\Users\alexs\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 283, in process_update
return await self.callback_query_handlers.notify(update.callback_query)
File "C:\Users\alexs\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "C:\Users\alexs\OneDrive\Рабочий стол\AutoShop-2.4.3\tgbot\handlers\admin_functions.py", line 688, in settings_open
await call.message.edit_text("<b>
Основные настройки бота.</b>", reply_markup=await settings_inl())
File "C:\Users\alexs\OneDrive\Рабочий стол\AutoShop-2.4.3\tgbot\keyboards\inline_admin.py", line 420, in settings_inl
kb.append(InlineKeyboardButton(f"Язык по умолчанию | {default_language['name']}", callback_data="default_lang:edit"))
TypeError: 'NoneType' object is not subscriptable