Skip to content

Commit

Permalink
Merge pull request #2304 from sopel-irc/url-deprecated-dns
Browse files Browse the repository at this point in the history
url: replace deprecated `dnspython` method
  • Loading branch information
dgw authored Jun 26, 2022
2 parents 8d077a0 + 97e8520 commit 89d631d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sopel/modules/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def process_urls(
try:
ips = [ip_address(parsed_url.hostname)]
except ValueError:
ips = [ip_address(ip) for ip in dns.resolver.query(parsed_url.hostname)]
ips = [ip_address(ip) for ip in dns.resolver.resolve(parsed_url.hostname)]

private = False
for ip in ips:
Expand Down

0 comments on commit 89d631d

Please sign in to comment.