From 523e55d197b9bc47837868a3c970003d2139a85e Mon Sep 17 00:00:00 2001 From: yucheng Date: Tue, 21 Jul 2026 06:46:41 +0000 Subject: [PATCH] fix(proxy): narrow credential lookup errors Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/credential_endpoints/endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/credential_endpoints/endpoints.py b/litellm/proxy/credential_endpoints/endpoints.py index 1bd772d1957..23667ad60c5 100644 --- a/litellm/proxy/credential_endpoints/endpoints.py +++ b/litellm/proxy/credential_endpoints/endpoints.py @@ -321,7 +321,7 @@ async def get_credentials( return {"success": True, "credentials": masked_credentials} except HTTPException: raise - except (PrismaError, httpx.HTTPError) as e: + except Exception as e: return handle_exception_on_proxy(e) @@ -599,7 +599,7 @@ async def update_credential( credentials_repository = CredentialsRepository(prisma_client) try: existing = await credentials_repository.find_by_name(credential_name) - except Exception as e: + except (PrismaError, httpx.HTTPError) as e: return handle_exception_on_proxy(e) await _authorize_credential_patch( credential_name=credential_name,