mirror of https://github.com/CIRCL/url-abuse
Do not cache the VT response if the URL is being procesed.
parent
66bad32632
commit
09f3da6b64
|
@ -264,6 +264,7 @@ def vt_query_url(url, url_up, key, query, upload=True):
|
||||||
link = res.get("permalink")
|
link = res.get("permalink")
|
||||||
positives = res.get("positives")
|
positives = res.get("positives")
|
||||||
total = res.get("total")
|
total = res.get("total")
|
||||||
|
if positives is not None:
|
||||||
_cache_set(query, (msg, link, positives, total), 'vt')
|
_cache_set(query, (msg, link, positives, total), 'vt')
|
||||||
return msg, link, positives, total
|
return msg, link, positives, total
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue