fix: use system_error_text for lk error handling
This commit is contained in:
+1
-1
@@ -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):
|
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)
|
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")
|
await msg.answer(error_msg, parse_mode="html")
|
||||||
|
|
||||||
# =========================================================
|
# =========================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user