From 1ac0035b4d02416ef7dc71ac6d0c763674218a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B5=D0=BD=D0=B8=D1=81=20=D0=9A=D1=80=D0=B8=D0=B2?= =?UTF-8?q?=D0=BE=D1=87=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Mon, 27 Jul 2026 22:40:29 +0700 Subject: [PATCH] fix: use DEFAULT_REQUESTER fallback for ticket requester email --- instruct/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instruct/handlers.py b/instruct/handlers.py index 44d7cb7..67cdcf5 100644 --- a/instruct/handlers.py +++ b/instruct/handlers.py @@ -184,7 +184,7 @@ async def create_sd_ticket_for_trueconf(user_id: str, cn: str) -> str | None: # Получаем email из AD ad_info = get_ad_user_info(user_id) - requester_email = ad_info.get("mail", DEFAULT_REQUESTER) if ad_info else DEFAULT_REQUESTER + requester_email = ad_info.get("mail") or DEFAULT_REQUESTER city = ad_info.get("city", "Кемерово") if ad_info else "Кемерово" description = (