mirror of https://github.com/MISP/misp-modules
fix: [variodbs] Fixed the empty vulnerability results case handling, to avoid the module to stop before looking for related exploits
parent
3db8fa63db
commit
b964b5e2a6
|
@ -181,7 +181,7 @@ def handler(q=False):
|
|||
parser.parse_vulnerability_information(vulnerability_results)
|
||||
empty = False
|
||||
else:
|
||||
if r.reason != 'Not found':
|
||||
if r.reason != 'Not Found':
|
||||
return {'error': 'Error while querying the variotdbs API.'}
|
||||
r = requests.get(f"{variotdbs_url}/exploits/?cve={attribute['value']}", headers=headers)
|
||||
if r.status_code == 200:
|
||||
|
|
Loading…
Reference in New Issue