Skip to content

Commit

Permalink
Handle SSLError (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
DouglasBlackwood committed Jun 6, 2024
1 parent c96fdf7 commit e987df2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

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

## Unreleased

- Handle `SSLError` exception. (#918)

## 1.0.5 (March 27th, 2024)

- Handle `EndOfStream` exception for anyio backend. (#899)
Expand Down
1 change: 1 addition & 0 deletions httpcore/_backends/anyio.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ async def start_tls(
TimeoutError: ConnectTimeout,
anyio.BrokenResourceError: ConnectError,
anyio.EndOfStream: ConnectError,
ssl.SSLError: ConnectError,
}
with map_exceptions(exc_map):
try:
Expand Down

0 comments on commit e987df2

Please sign in to comment.