Skip to content

Commit f628665

Browse files
committed
fix: Check that description is not None before checking content
1 parent c668cec commit f628665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal-enrichment/shadowtrackr/src/shadowtrackr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _process_entity(self, stix_objects, stix_entity, opencti_entity) -> str:
153153
else:
154154
description = opencti_entity["x_opencti_description"]
155155

156-
if "[ShadowTrackr] " in description:
156+
if description is not None and "[ShadowTrackr] " in description:
157157
return (
158158
"This ip is already processed by the ShadowTrackr connector. We're not doing it again,"
159159
" that might mess up the score"

0 commit comments

Comments
 (0)