--- a/src/eric7/WebBrowser/SafeBrowsing/SafeBrowsingUrl.py Wed Nov 02 10:12:25 2022 +0100 +++ b/src/eric7/WebBrowser/SafeBrowsing/SafeBrowsingUrl.py Wed Nov 02 12:07:01 2022 +0100 @@ -110,10 +110,10 @@ host = host.strip(".") host = re.sub(r"\.+", ".", host).lower() if host.isdigit(): - with contextlib.suppress(Exception): + with contextlib.suppress(OSError): host = socket.inet_ntoa(struct.pack("!I", int(host))) if host.startswith("0x") and "." not in host: - with contextlib.suppress(Exception): + with contextlib.suppress(OSError): host = socket.inet_ntoa(struct.pack("!I", int(host, 16))) quotedPath = quote(path) quotedHost = quote(host)