From 3a800d72026b53bdbcf87e828262e5db6840c1d5 Mon Sep 17 00:00:00 2001 From: Jared Ondricek Date: Mon, 22 Apr 2024 12:45:09 -0500 Subject: [PATCH] Linting --- mitreattack/stix20/MitreAttackData.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitreattack/stix20/MitreAttackData.py b/mitreattack/stix20/MitreAttackData.py index 9f383a04..67298f79 100644 --- a/mitreattack/stix20/MitreAttackData.py +++ b/mitreattack/stix20/MitreAttackData.py @@ -363,10 +363,10 @@ def get_objects_by_content(self, content: str, object_type: str = None, remove_r list a list of objects where the given content string appears in the description """ - if object_type and object_type not in self.stix_types and object_type != 'relationship': + if object_type and object_type not in self.stix_types and object_type != "relationship": # invalid object type raise ValueError(f"object_type must be one of {self.stix_types} or 'relationship'") - + filters = [Filter("type", "=", object_type)] if object_type else [] objects = self.src.query(filters)