Skip to content

Commit

Permalink
fix: Make sure requests to jvndb timeout relatively fast
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Dec 17, 2024
1 parent c669123 commit 476c6b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vulnerabilitylookup/feeders/jvndb.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def __init__(self) -> None:
self.files_storage.mkdir(parents=True, exist_ok=True)

def _fetch_feeds(self) -> list[Path]:
# Note: These files need to be processed in order, a newer one may contain updates fror older ones.
# So if any fail, we need to retry the import later. No exception should be handled.
all_files = []
base_url = "https://jvndb.jvn.jp/en/rss/years/jvndb_{year}.rdf"
for year in range(2002, datetime.now().year + 1):
Expand Down

0 comments on commit 476c6b7

Please sign in to comment.