Added rate limit message

This commit is contained in:
3c7 2017-04-13 14:09:29 +02:00
parent af07fb401d
commit 114b0c039c

View File

@ -42,6 +42,8 @@ class VirusTotalAnalyzer(Analyzer):
if type(response) is not dict:
self.error('Bad response : ' + str(response))
status = response.get('response_code', -1)
if status == 204:
self.error('VirusTotal api rate limit exceeded (Status 204).')
if status != 200:
self.error('Bad status : ' + str(status))
results = response.get('results', {})