Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jondricek committed Apr 22, 2024
1 parent 5176bd4 commit 3a800d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mitreattack/stix20/MitreAttackData.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3a800d7

Please sign in to comment.