fix: avoid uncessary retries in OAuth authenticated requests (#1206)

Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
This commit is contained in:
keurcien 2025-08-22 12:45:54 +02:00 • committed by GitHub
commit e750a06a99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -546,6 +546,6 @@ class OAuthClientProvider(httpx.Auth):
logger.exception("OAuth flow error")
raise
# Retry with new tokens
self._add_auth_header(request)
yield request
# Retry with new tokens
self._add_auth_header(request)
yield request