Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarushkin committed May 27, 2024
1 parent 4832864 commit cf5a3bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/nvd_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cf5a3bf

Please sign in to comment.