Skip to content

Commit

Permalink
can't clear oserrors
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Oct 13, 2024
1 parent c217d95 commit 9b46a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anyio/_core/_sockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ async def try_connect(remote_host: str, event: Event) -> None:
)
raise OSError("All connection attempts failed") from cause
finally:
oserrors.clear()
oserrors = []

if tls or tls_hostname or ssl_context:
try:
Expand Down

0 comments on commit 9b46a18

Please sign in to comment.