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

Commit 58fde03

Browse files
author
Samuel Hassine
committed
[client] Fix black format
1 parent 03858dd commit 58fde03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pycti/entities/opencti_tool.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ def import_from_stix2(self, **kwargs):
346346
if stix_object is not None:
347347
return self.opencti.tool.create(
348348
name=stix_object["name"],
349-
description=self.opencti.stix2.convert_markdown(stix_object["description"])
349+
description=self.opencti.stix2.convert_markdown(
350+
stix_object["description"]
351+
)
350352
if "description" in stix_object
351353
else "",
352354
alias=self.opencti.stix2.pick_aliases(stix_object),
@@ -369,9 +371,7 @@ def import_from_stix2(self, **kwargs):
369371
update=update,
370372
)
371373
else:
372-
self.opencti.log(
373-
"error", "[opencti_tool] Missing parameters: stixObject"
374-
)
374+
self.opencti.log("error", "[opencti_tool] Missing parameters: stixObject")
375375

376376
"""
377377
Export an Tool object in STIX2

0 commit comments

Comments
 (0)