chg: [internal] Resolve deprecation warning in btc_spam_check

pull/649/head
Jakub Onderka 2023-07-01 14:45:41 +02:00
parent 19d5f367a3
commit 938e30007b
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def handler(q=False):
btc = request['btc']
query = f"{btc}.{url}"
try:
result = ' - '.join([str(r) for r in resolver.query(query, 'TXT')])[1:-1]
result = ' - '.join([str(r) for r in resolver.resolve(query, 'TXT')])[1:-1]
except NXDOMAIN:
result = f"{btc} is not known as a scam address."
except LabelTooLong: