Skip to content

Commit d693449

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/marshmallow/validate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ def __call__(self, value: str) -> str:
224224
# Extract the netloc (hostname and port)
225225
parsed_url = urlparse(value)
226226
hostname = parsed_url.hostname
227-
except (ValueError, TypeError, ):
227+
except (
228+
ValueError,
229+
TypeError,
230+
):
228231
hostname = None
229232

230233
if hostname:

0 commit comments

Comments
 (0)