From 7554f71c27218231e3b2ae0fecb92fe7ee6ca9ce Mon Sep 17 00:00:00 2001 From: Flo <79980341+flo-max@users.noreply.github.com> Date: Thu, 15 May 2025 17:20:07 +0200 Subject: [PATCH] Update artifact.py For sources the supported_os attribute is not initialized by default, therefore a test on source.supported_os might raise an AttributeError --- artifacts/artifact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifacts/artifact.py b/artifacts/artifact.py index 2eff87e2..b4fd6c3a 100644 --- a/artifacts/artifact.py +++ b/artifacts/artifact.py @@ -78,7 +78,7 @@ def AsDict(self): 'type': source.type_indicator, 'attributes': source.AsDict() } - if source.supported_os: + if getattr(source, "supported_os", None): source_definition['supported_os'] = source.supported_os sources.append(source_definition)