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"