From d693449cc69ab8977fd608c89e5077a57b23b339 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 18 Oct 2024 09:33:18 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/marshmallow/validate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/marshmallow/validate.py b/src/marshmallow/validate.py index aa27136b2..47e106a5f 100644 --- a/src/marshmallow/validate.py +++ b/src/marshmallow/validate.py @@ -224,7 +224,10 @@ def __call__(self, value: str) -> str: # Extract the netloc (hostname and port) parsed_url = urlparse(value) hostname = parsed_url.hostname - except (ValueError, TypeError, ): + except ( + ValueError, + TypeError, + ): hostname = None if hostname: