Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 13, 2024
1 parent 3f7ebad commit bd67006
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/anyio/_core/_sockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ async def try_connect(remote_host: str, event: Event) -> None:
cause = (
oserrors[0]
if len(oserrors) == 1
else ExceptionGroup("multiple connection attempts failed", oserrors.copy())
else ExceptionGroup(
"multiple connection attempts failed", oserrors.copy()
)
)
raise OSError("All connection attempts failed") from cause
finally:
Expand Down

0 comments on commit bd67006

Please sign in to comment.