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.
url
1 parent 107e57c commit 4badf8aCopy full SHA for 4badf8a
sopel/builtins/url.py
@@ -437,7 +437,10 @@ def process_urls(
437
except ValueError:
438
# Extra try/except here in case the DNS resolution fails, see #2348
439
try:
440
- ips = [ip_address(ip) for ip in dns.resolver.resolve(parsed_url.hostname)]
+ ips = [
441
+ ip_address(ip.to_text())
442
+ for ip in dns.resolver.resolve(parsed_url.hostname)
443
+ ]
444
except Exception as exc:
445
LOGGER.debug(
446
"Cannot resolve hostname %s, ignoring URL %s"
0 commit comments