mirror of
https://github.com/valitydev/Cortex-Analyzers.git
synced 2024-11-06 17:15:21 +00:00
Added rate limit message
This commit is contained in:
parent
af07fb401d
commit
114b0c039c
@ -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', {})
|
||||
|
Loading…
Reference in New Issue
Block a user