fix: fix ssl behavior in request

- `ClientConnectionError` in `aiohttp` can wrap SSL handshake and
  certificate verification errors
- Retrying those hides the real cause and produced
  `TransientNetworkError` instead of the expected certificate error
- Removing `ClientConnectionError` from the transient list lets SSL
  errors surface correctly
This commit is contained in:
samm81 2025-10-09 15:55:43 +08:00 committed by Hugo
parent 81d8444810
commit 6708dbbbdc

View file

@ -268,7 +268,6 @@ async def request(
except (
ServerDisconnectedError,
ServerTimeoutError,
ClientConnectionError,
asyncio.TimeoutError,
) as e:
# Retry only if the method is safe/idempotent for our DAV use