mirror of https://github.com/CIRCL/lookyloo
fix: Catch QuotaExceededError in VT module
parent
1abd97f37a
commit
02497e167c
|
@ -81,7 +81,13 @@ class VirusTotal():
|
||||||
|
|
||||||
scan_requested = False
|
scan_requested = False
|
||||||
if self.autosubmit and force:
|
if self.autosubmit and force:
|
||||||
|
try:
|
||||||
self.client.scan_url(url)
|
self.client.scan_url(url)
|
||||||
|
except APIError as e:
|
||||||
|
if e.code == 'QuotaExceededError':
|
||||||
|
self.logger.warning('VirusTotal quota exceeded, sry.')
|
||||||
|
return
|
||||||
|
self.logger.exception('Something went poorly withi this query.')
|
||||||
scan_requested = True
|
scan_requested = True
|
||||||
|
|
||||||
if not force and vt_file.exists():
|
if not force and vt_file.exists():
|
||||||
|
|
Loading…
Reference in New Issue