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

Commit 102ade4

Browse files
committed
[client] Fix ordering of imports
1 parent d9bccc8 commit 102ade4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pycti/connector/opencti_connector_helper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
import pika
1919
from pika.adapters.asyncio_connection import AsyncioConnection
2020
from pika.exceptions import NackError, UnroutableError
21+
from sseclient import SSEClient
22+
2123
from pycti.api.opencti_api_client import OpenCTIApiClient
2224
from pycti.connector import LOGGER
2325
from pycti.connector.opencti_connector import OpenCTIConnector
2426
from pycti.utils.opencti_stix2_splitter import OpenCTIStix2Splitter
25-
from sseclient import SSEClient
2627

2728
TRUTHY: List[str] = ["yes", "true", "True"]
2829
FALSY: List[str] = ["no", "false", "False"]
@@ -169,7 +170,7 @@ async def _process_message(self, channel, method, properties, body) -> None:
169170
self.helper.api.work.to_processed(
170171
json_data["internal"]["work_id"], message_task.result()
171172
)
172-
except Exception as e: # pylint: disable=broad-except
173+
except Exception as e: # pylint: disable=broad-except
173174
logging.exception("Error in message processing, reporting error to API")
174175
self.helper.api.work.to_processed(
175176
json_data["internal"]["work_id"], str(e), True

0 commit comments

Comments
 (0)