fix: [variodbs] Fixed the empty vulnerability results case handling, to avoid the module to stop before looking for related exploits

pull/590/head
Christian Studer 2022-10-24 15:43:04 +02:00
parent 3db8fa63db
commit b964b5e2a6
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -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: