Skip to content

Commit

Permalink
Merge pull request #657 from pyupio/bugfix/correct-the-vurnbuelity
Browse files Browse the repository at this point in the history
Fix for NoneType is not iterable
  • Loading branch information
jakub-safetycli authored Dec 20, 2024
2 parents ee97021 + 433edbe commit e0f3046
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion safety/scan/ecosystems/python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def ignore_vuln_if_needed(

spec_ignored: bool = False

if vuln_id in ignore_vulns.keys() and str(specification.specifier) in ignore_vulns[vuln_id].specifications:
vuln = ignore_vulns.get(vuln_id)
if vuln is not None and vuln.specifications is not None and str(specification.specifier) in vuln.specifications:
spec_ignored = True

if (not spec_ignored) and \
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ classifiers =
[options]
zip_safe = False
include_package_data = True
packages = safety, safety.formatters,safety.formatters.schemas, safety.alerts, safety.auth, safety.scan, safety.scan.finder, safety.scan.ecosystems, safety.scan.ecosystems.python, safety.alerts.templates, safety.templates
python_requires = >=3.7
packages = safety, safety.formatters,safety.formatters.schemas, safety.alerts, safety.auth, safety.scan, safety.scan.finder, safety.scan.ecosystems, safety.scan.ecosystems.python, safety.alerts.templates, safety.templates, safety.scan.fun_mode
python_requires = >=3.8
package_dir =
safety = safety
install_requires =
Expand Down

0 comments on commit e0f3046

Please sign in to comment.