fix: use system_error_text for lk error handling
This commit is contained in:
+2
-2
@@ -122,7 +122,7 @@ def log_and_notify_error(user_id: str, action: str, error_details: str):
|
||||
|
||||
async def handle_lk_error(msg: Message, user_id: str, action: str, error_details: str):
|
||||
await asyncio.to_thread(log_and_notify_error, user_id, action, error_details)
|
||||
error_msg = lk_error_handling(EMOJI_DIGITS)
|
||||
error_msg = system_error_text(EMOJI_DIGITS)
|
||||
await msg.answer(error_msg, parse_mode="html")
|
||||
|
||||
# =========================================================
|
||||
@@ -738,4 +738,4 @@ async def lk_router_handler(msg: Message):
|
||||
if cmd == "0": clear_state(user_id); from utils.menu import MENU_TEXT; await msg.answer(MENU_TEXT, parse_mode="html")
|
||||
elif cmd == "9": set_state(user_id, "LK_DOCS_MENU"); await msg.answer(LK_DOCS_MENU_TEXT, parse_mode="html")
|
||||
else:
|
||||
await msg.answer(UNKNOWN_MAIN_CMD_TEXT, parse_mode="html")
|
||||
await msg.answer(UNKNOWN_MAIN_CMD_TEXT, parse_mode="html")
|
||||
|
||||
Reference in New Issue
Block a user