исправил одну строку

This commit is contained in:
unknown
2025-12-06 13:38:48 +03:00
parent 26b2bd5fdf
commit 8050855b33

View File

@@ -93,8 +93,8 @@ async def start_command(message: Message):
try: try:
existing = await call_api("GET", f"/user/{user_id}") 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: if not user_exists:
logger.debug(f"[start] Пользователь {user_id} не найден, создаю.") logger.debug(f"[start] Пользователь {user_id} не найден, создаю.")
create_result = await call_api( create_result = await call_api(