Skip to content

Commit

Permalink
Fix missing 'proxy' and 'cache' params in 'fetch_database' call (#234)
Browse files Browse the repository at this point in the history
Fix missing 'proxy' and 'cache' params in 'fetch_database' call
  • Loading branch information
Jwomers authored Jul 4, 2019
2 parents 3b81f90 + e42e1ca commit 955de59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safety/safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def check(packages, key, db_mirror, cached, ignore_ids, proxy):
spec_set = SpecifierSet(specifiers=specifier)
if spec_set.contains(pkg.version):
if not db_full:
db_full = fetch_database(full=True, key=key, db=db_mirror)
db_full = fetch_database(full=True, key=key, db=db_mirror, cached=cached, proxy=proxy)
for data in get_vulnerabilities(pkg=name, spec=specifier, db=db_full):
vuln_id = data.get("id").replace("pyup.io-", "")
if vuln_id and vuln_id not in ignore_ids:
Expand Down

0 comments on commit 955de59

Please sign in to comment.