Skip to content

Commit 96be44e

Browse files
https://github.com/OpenCTI-Platform/splunk-add-on/issues/34
1 parent 426df18 commit 96be44e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TA-opencti-add-on/bin/ta_opencti_add_on/app_connector_helper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ def register(self):
8181
raise Exception(f"An exception occurred while registering Splunk App, "
8282
f"received status code: {r.status_code}, exception: {r.content}")
8383

84+
if "errors" in r.json():
85+
raise Exception(f"An exception occurred while registering Splunk App, "
86+
f"received status code: {r.status_code}, exception: {r.json()}")
87+
8488
def send_stix_bundle(self, bundle):
8589
"""
8690
:param bundle:

0 commit comments

Comments
 (0)