diff --git a/snyk/managers.py b/snyk/managers.py index 651f056..8ffa730 100644 --- a/snyk/managers.py +++ b/snyk/managers.py @@ -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