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:
yucheng 2026-07-21 06:46:41 +00:00
parent 120e3d6d3d
commit 523e55d197

View file

@ -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,