mirror of https://github.com/CIRCL/AIL-framework
fix: [cves] fix cve search timeout
parent
ed9682798e
commit
5d84b347bc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue