Skip to content

Commit 15d4433

Browse files
Merge pull request #54 from splunk-soar-connectors/python-3.13-fixes
chore: resolve issues related to Python 3.13 upgrade
2 parents 66c86cd + 36c7e44 commit 15d4433

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

release_notes/unreleased.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**Unreleased**
22

33
* chore(ci): update pre-commit config
4+
* Resolved app issues related to Python 3.13 upgrade

winrm_connector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ def _get_error_message_from_exception(self, e):
7676
:return: error message
7777
"""
7878

79+
error_code = consts.WINRM_ERROR_CODE_MESSAGE
80+
error_message = consts.WINRM_ERROR_MESSAGE_UNAVAILABLE
81+
7982
try:
8083
if e.args:
8184
if len(e.args) > 1:
@@ -84,9 +87,6 @@ def _get_error_message_from_exception(self, e):
8487
elif len(e.args) == 1:
8588
error_code = consts.WINRM_ERROR_CODE_MESSAGE
8689
error_message = e.args[0]
87-
else:
88-
error_code = consts.WINRM_ERROR_CODE_MESSAGE
89-
error_message = consts.WINRM_ERROR_MESSAGE_UNAVAILABLE
9090
except:
9191
error_code = consts.WINRM_ERROR_CODE_MESSAGE
9292
error_message = consts.WINRM_ERROR_MESSAGE_UNAVAILABLE

0 commit comments

Comments
 (0)