Skip to content

Commit

Permalink
[thehive] Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Oct 16, 2023
1 parent 0485723 commit 4163687
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions external-import/thehive/src/thehive.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@

import stix2
import yaml
from constants import DEFAULT_DATETIME, DEFAULT_UTC_DATETIME, PAP_MAPPINGS, TLP_MAPPINGS
from dateutil.parser import parse
from hive_observable_transform import (
HiveObservableTransform,
UnsupportedIndicatorTypeError,
)
from pycti import (
CaseIncident,
CustomObjectCaseIncident,
Expand All @@ -21,12 +26,6 @@
from thehive4py.api import TheHiveApi
from thehive4py.query import Child, Gt, Or

from constants import DEFAULT_DATETIME, DEFAULT_UTC_DATETIME, PAP_MAPPINGS, TLP_MAPPINGS
from hive_observable_transform import (
HiveObservableTransform,
UnsupportedIndicatorTypeError,
)

from utils import format_datetime # isort: skip


Expand Down Expand Up @@ -553,4 +552,4 @@ def run(self):
except Exception as e:
print(e)
time.sleep(10)
sys.exit(0)
sys.exit(0)

0 comments on commit 4163687

Please sign in to comment.