Skip to content

Commit fa9574e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0bb79ca commit fa9574e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

cheroot/server.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,8 +1530,13 @@ def _close_kernel_socket(self):
15301530
raise
15311531
except Exception as exc:
15321532
# Normalize SSL exceptions if SSL is present
1533-
if SSL is not None and isinstance(exc, (SSL.Error, SSL.SysCallError)):
1534-
raise errors.FatalSSLAlert("TLS/SSL connection failure") from exc
1533+
if SSL is not None and isinstance(
1534+
exc,
1535+
(SSL.Error, SSL.SysCallError),
1536+
):
1537+
raise errors.FatalSSLAlert(
1538+
'TLS/SSL connection failure',
1539+
) from exc
15351540
raise # re-raise everything else
15361541

15371542

0 commit comments

Comments
 (0)