fix: [cves] fix cve search timeout

pull/594/head
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
1 changed files with 2 additions and 0 deletions

View File

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