From 8050855b339c136bdb4d0beda568e66dd38d401f Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 6 Dec 2025 13:38:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D0=B4=D0=BD=D1=83=20=D1=81=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handlers/start.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/start.py b/handlers/start.py index 570ac30..51de9a0 100644 --- a/handlers/start.py +++ b/handlers/start.py @@ -93,8 +93,8 @@ async def start_command(message: Message): try: existing = await call_api("GET", f"/user/{user_id}") - user_exists = existing not in (None, "ERROR") - + user_exists = isinstance( + existing, dict) and existing.get("id") is not None if not user_exists: logger.debug(f"[start] Пользователь {user_id} не найден, создаю.") create_result = await call_api(