File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
vulnerabilities/improvers Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,7 @@ websocket-client==0.59.0
113113yarl == 1.7.2
114114zipp == 3.8.0
115115dateparser == 1.1.1
116- # TODO: pin fetchcode, once nexB/fetchcode#93 is merged
117- # fetchcode==0.2.0
116+ fetchcode == 0.3.0
118117cwe2 == 2.0.0
119118drf-spectacular-sidecar == 2022.10.1
120119drf-spectacular == 0.24.2
Original file line number Diff line number Diff line change @@ -90,8 +90,7 @@ install_requires =
9090 # networking
9191 GitPython>=3.1.17
9292 requests>=2.25.1
93- # TODO: replace this with new fetchcode release
94- fetchcode @ git+https://github.com/nexB/fetchcode.git@refs/pull/93/head
93+ fetchcode>=0.3.0
9594
9695 # vulntotal
9796 python-dotenv
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def get_package_versions(
7373 """
7474 versions = package_versions .versions (str (package_url ))
7575 versions_before_until = set ()
76- for version in versions :
76+ for version in versions or [] :
7777 if until and version .release_date and version .release_date > until :
7878 continue
7979 versions_before_until .add (version .value )
@@ -277,7 +277,7 @@ def fetch_nginx_version_from_git_tags(self):
277277 Yield all nginx version from its git tags.
278278 """
279279 nginx_versions = package_versions .versions ("pkg:github/nginx/nginx" )
280- for version in nginx_versions :
280+ for version in nginx_versions or [] :
281281 cleaned = clean_nginx_git_tag (version .value )
282282 yield cleaned
283283
You can’t perform that action at this time.
0 commit comments