Skip to content

Commit

Permalink
Updated Get in manager to fix None vs 0 issue on totalDependencies fo…
Browse files Browse the repository at this point in the history
…r code projects
  • Loading branch information
ig596 committed Mar 18, 2023
1 parent c225ef3 commit e372d10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snyk/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def get(self, id: str):
del project_data["tags"]
except KeyError:
pass
if project_data["totalDependencies"] is None:
project_data["totalDependencies"] = 0
project_klass = self.klass.from_dict(project_data)
project_klass.organization = self.instance
return project_klass
Expand Down

0 comments on commit e372d10

Please sign in to comment.