mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
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:
parent
81d8444810
commit
6708dbbbdc
1 changed files with 0 additions and 1 deletions
|
|
@ -268,7 +268,6 @@ async def request(
|
||||||
except (
|
except (
|
||||||
ServerDisconnectedError,
|
ServerDisconnectedError,
|
||||||
ServerTimeoutError,
|
ServerTimeoutError,
|
||||||
ClientConnectionError,
|
|
||||||
asyncio.TimeoutError,
|
asyncio.TimeoutError,
|
||||||
) as e:
|
) as e:
|
||||||
# Retry only if the method is safe/idempotent for our DAV use
|
# Retry only if the method is safe/idempotent for our DAV use
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue