1
0
mirror of https://github.com/HorlogeSkynet/archey4 synced 2025-04-11 00:00:19 +02:00

[WAN_IP] Fixes a super-micro code style

This commit is contained in:
Samuel FORESTIER 2020-12-16 10:09:31 +01:00
parent 4425eda20f
commit 6109cd4aca

@ -93,10 +93,7 @@ class WanIP(Entry):
def _run_http_request(server_url: str, timeout: float) -> Optional[str]:
"""Simple wrapper to `urllib` module to perform HTTP requests"""
try:
http_request = urlopen(
server_url,
timeout=timeout
)
http_request = urlopen(server_url, timeout=timeout)
except (HTTPError, URLError, SocketTimeoutError):
return None