diff --git a/pyproject.toml b/pyproject.toml index 2bfa41f..7125d24 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "socketsecurity" -version = "2.0.34" +version = "2.0.35" requires-python = ">= 3.10" license = {"file" = "LICENSE"} dependencies = [ diff --git a/socketsecurity/__init__.py b/socketsecurity/__init__.py index 6bdd25c..452a794 100644 --- a/socketsecurity/__init__.py +++ b/socketsecurity/__init__.py @@ -1,3 +1,3 @@ __author__ = 'socket.dev' -__version__ = '2.0.34' +__version__ = '2.0.35' diff --git a/socketsecurity/core/__init__.py b/socketsecurity/core/__init__.py index 23466bd..96aaa9e 100644 --- a/socketsecurity/core/__init__.py +++ b/socketsecurity/core/__init__.py @@ -90,6 +90,8 @@ def get_sbom_data(self, full_scan_id: str) -> List[SocketArtifact]: log.debug(f"Failed to get SBOM data for full-scan {full_scan_id}") log.debug(response.message) return {} + if not hasattr(response, "artifacts") or not response.artifacts: + return artifacts for artifact_id in response.artifacts: artifacts.append(response.artifacts[artifact_id]) return artifacts