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

Commit ec755da

Browse files
author
Samuel Hassine
committed
[client] Prepare next release
1 parent 60943c5 commit ec755da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pycti/connector/opencti_connector_helper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ def get_range(self, from_id):
217217
r = requests.post(
218218
self.opencti_url + "/stream/history", json=payload, headers=headers
219219
)
220-
return r.json()["lastEventId"]
220+
result = r.json()
221+
if result and "lastEventId" in result:
222+
return result["lastEventId"]
221223

222224
def run(self):
223225
from_event_id = self.connector_last_event_id

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from setuptools import setup
66
from setuptools.command.install import install
77

8-
VERSION = "4.0.5"
8+
VERSION = "4.0.6"
99

1010
with open("README.md", "r") as fh:
1111
long_description = fh.read()

0 commit comments

Comments
 (0)