Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 5b3e786

Browse files
[client] Fix export an entity even if the status worfklow does not exist (#636)
1 parent 340107d commit 5b3e786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ def generate_export(self, entity: Dict, no_custom_attributes: bool = False) -> D
15151515
if "tasks" in entity:
15161516
del entity["tasks"]
15171517

1518-
if "status" in entity:
1518+
if "status" in entity and entity["status"] is not None:
15191519
entity["x_opencti_workflow_id"] = entity["status"].get("id")
15201520
if "status" in entity:
15211521
del entity["status"]

0 commit comments

Comments
 (0)