Skip to content

Commit e987df2

Browse files
authoredJun 6, 2024··
Handle SSLError (#918)
1 parent c96fdf7 commit e987df2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
 

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## Unreleased
8+
9+
- Handle `SSLError` exception. (#918)
10+
711
## 1.0.5 (March 27th, 2024)
812

913
- Handle `EndOfStream` exception for anyio backend. (#899)

‎httpcore/_backends/anyio.py

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ async def start_tls(
6464
TimeoutError: ConnectTimeout,
6565
anyio.BrokenResourceError: ConnectError,
6666
anyio.EndOfStream: ConnectError,
67+
ssl.SSLError: ConnectError,
6768
}
6869
with map_exceptions(exc_map):
6970
try:

0 commit comments

Comments
 (0)
Please sign in to comment.