Do not cache the VT response if the URL is being procesed.

travis
Raphaël Vinot 2015-03-04 10:26:21 +01:00
parent 66bad32632
commit 09f3da6b64
1 changed files with 2 additions and 1 deletions

View File

@ -264,7 +264,8 @@ def vt_query_url(url, url_up, key, query, upload=True):
link = res.get("permalink")
positives = res.get("positives")
total = res.get("total")
_cache_set(query, (msg, link, positives, total), 'vt')
if positives is not None:
_cache_set(query, (msg, link, positives, total), 'vt')
return msg, link, positives, total