fix: [cves] fix cve search timeout

This commit is contained in:
Terrtia 2023-05-16 13:28:31 +02:00
parent ed9682798e
commit 5d84b347bc
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -90,6 +90,8 @@ class Cve(AbstractDaterangeObject):
return {'error': f'{response.status_code}'}
except requests.exceptions.ConnectionError:
return {'error': f'Connection Error'}
except requests.exceptions.ReadTimeout:
return {'error': f'Timeout Error'}
# TODO ADD SEARCH FUNCTION