diff --git a/github_connector.py b/github_connector.py index cdf988c..f6b00ab 100644 --- a/github_connector.py +++ b/github_connector.py @@ -375,20 +375,17 @@ 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) @@ -396,7 +393,7 @@ def _get_error_message_from_exception(self, e): 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 diff --git a/release_notes/unreleased.md b/release_notes/unreleased.md index c17914d..a8302f2 100644 --- a/release_notes/unreleased.md +++ b/release_notes/unreleased.md @@ -1,3 +1,4 @@ **Unreleased** * chore(ci): update pre-commit config +* Resolved app issues related to Python 3.13 upgrade