From a5dbefe7572ae684e930bd3f21cc3eb4eb41b39b Mon Sep 17 00:00:00 2001 From: cheykrym Date: Fri, 11 Jul 2025 00:34:34 +0300 Subject: [PATCH] ssl patch --- common_lib/services/profile.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common_lib/services/profile.py b/common_lib/services/profile.py index 7a66deb..7c33af4 100644 --- a/common_lib/services/profile.py +++ b/common_lib/services/profile.py @@ -22,8 +22,8 @@ async def get_profile_by_user_id(user_id: UUID, token: str) -> dict: return response.json() - except httpx.RequestError as e: - raise HTTPException(status_code=status.HTTP_503_SERVICE_UNAVAILABLE, detail=f"profile_service unreachable: {str(e)}") + except httpx.RequestError: + raise HTTPException(status_code=status.HTTP_503_SERVICE_UNAVAILABLE, detail="Token service unavailable") async def get_profiles_by_user_ids(user_ids: List[UUID], token: str, user_id: UUID) -> Dict[str, dict]: diff --git a/pyproject.toml b/pyproject.toml index 071758c..8612b7f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "common-lib" -version = "0.0.13" +version = "0.0.14" description = "Библиотека общих компонентов для микросервисов yobble" authors = [{ name = "cheykrym", email = "you@example.com" }] license = "MIT"