mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
fix(proxy): narrow credential lookup errors
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
120e3d6d3d
commit
523e55d197
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue