mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [cves] fix cve search timeout
This commit is contained in:
parent
ed9682798e
commit
5d84b347bc
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue