diff --git a/common_lib/services/profile.py b/common_lib/services/profile.py index a7061e7..0a5f12e 100644 --- a/common_lib/services/profile.py +++ b/common_lib/services/profile.py @@ -8,7 +8,7 @@ from .utils import ssl_transport async def get_profile_by_user_id(user_id: UUID, token: str) -> dict: try: - async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0,) as client: + async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0) as client: response = await client.get( f"{settings.PROFILE_SERVICE}/user_id/{user_id}", headers={"Authorization": f"Bearer {token}"} @@ -28,7 +28,7 @@ async def get_profile_by_user_id(user_id: UUID, token: str) -> dict: async def get_profiles_by_user_ids(user_ids: List[UUID], token: str, user_id: UUID) -> Dict[str, dict]: try: - async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0,) as client: + async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0) as client: response = await client.post( f"{settings.PROFILE_SERVICE}/user_ids/internal", headers={"Authorization": f"Bearer {token}"}, diff --git a/common_lib/utils/auth.py b/common_lib/utils/auth.py index 40ee271..c556b61 100644 --- a/common_lib/utils/auth.py +++ b/common_lib/utils/auth.py @@ -28,7 +28,7 @@ async def _fetch_current_user( user_agent = request.headers.get("User-Agent", "(unknown)") try: - async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0,) as client: + async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0) as client: response = await client.post( f"{settings.TOKEN_SERVICE}/decode", json={