mirror of https://github.com/MISP/misp-modules
chg: [internal] Resolve deprecation warning in btc_spam_check
parent
19d5f367a3
commit
938e30007b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue