From 5d84b347bc5c40ed76ed45ffc15c1f42d6a62514 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 16 May 2023 13:28:31 +0200 Subject: [PATCH] fix: [cves] fix cve search timeout --- bin/lib/objects/Cves.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/lib/objects/Cves.py b/bin/lib/objects/Cves.py index 07c3b8fb..63333ed4 100755 --- a/bin/lib/objects/Cves.py +++ b/bin/lib/objects/Cves.py @@ -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