Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions github_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,28 +375,25 @@ def _get_error_message_from_exception(self, e):
:return: error message
"""

error_code = "Error code unavailable"
error_message = "Unknown error occurred. Please check the asset configuration and|or action parameters."
try:
if e.args:
if len(e.args) > 1:
error_code = e.args[0]
error_message = e.args[1]
elif len(e.args) == 1:
error_code = "Error code unavailable"
error_message = e.args[0]
else:
error_code = "Error code unavailable"
error_message = "Unknown error occurred. Please check the asset configuration and|or action parameters."
except:
error_code = "Error code unavailable"
error_message = "Unknown error occurred. Please check the asset configuration and|or action parameters."
except Exception:
pass

try:
error_message = self._handle_py_ver_compat_for_input_str(error_message)
except TypeError:
error_message = (
"Error occurred while connecting to the GitHub server. Please check the asset configuration and|or the action parameters."
)
except:
except Exception:
error_message = "Unknown error occurred. Please check the asset configuration and|or action parameters."

return error_code, error_message
Expand Down
1 change: 1 addition & 0 deletions release_notes/unreleased.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**Unreleased**

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