From cf5a3bf6f1c4a897c3d5ea8e9a70f4c146965824 Mon Sep 17 00:00:00 2001 From: Dmitry Marushkin Date: Mon, 27 May 2024 20:49:19 +0000 Subject: [PATCH] fix --- app/nvd_fetcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/nvd_fetcher.py b/app/nvd_fetcher.py index 0be559e..ebf5044 100644 --- a/app/nvd_fetcher.py +++ b/app/nvd_fetcher.py @@ -62,7 +62,8 @@ def fetch_and_store_vulnerabilities(db: Session, from_date: str, to_date: str, l lastModEndDate=f'{to_date} 00:00' ) except Exception as e: - logger.error(f"Error in fetch results for {from_date} {to_date}, attempt {i}") + logger.error(f"Error in fetch results for {from_date} {to_date}: {e}, attempt {i}") + time.sleep(30) continue break