We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 472597f commit 32e2549Copy full SHA for 32e2549
httpx/_utils.py
@@ -464,14 +464,14 @@ def __eq__(self, other: typing.Any) -> bool:
464
def is_ipv4_hostname(hostname: str) -> bool:
465
try:
466
ipaddress.IPv4Address(hostname.split("/")[0])
467
- except:
+ except Exception:
468
return False
469
return True
470
471
472
def is_ipv6_hostname(hostname: str) -> bool:
473
474
ipaddress.IPv6Address(hostname.split("/")[0])
475
476
477
scripts/check
@@ -11,4 +11,4 @@ set -x
11
./scripts/sync-version
12
${PREFIX}black --check --diff --target-version=py37 $SOURCE_FILES
13
${PREFIX}mypy $SOURCE_FILES
14
-${PREFIX}ruff check --diff $SOURCE_FILES
+${PREFIX}ruff check $SOURCE_FILES
0 commit comments