Skip to content

Commit

Permalink
test: add a check for None packages
Browse files Browse the repository at this point in the history
Signed-off-by: Islam ElHakmi <eslam.elhakmey3@gmail.com>
  • Loading branch information
EslamHiko committed Apr 2, 2020
1 parent cdc233d commit 44a6b58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vulnerabilities/scraper/ruby.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def import_vulnerabilities():
vulnerability_package_dicts = []
for vulnerability in rubygem_advisories(RUBYSEC_DB_URL):
package = load_vulnerability_package(vulnerability)
vulnerability_package_dicts.append(package)
if package:
vulnerability_package_dicts.append(package)

return vulnerability_package_dicts

0 comments on commit 44a6b58

Please sign in to comment.