From ecde96bea410216fb54be7f4bd879382d5bf7fd4 Mon Sep 17 00:00:00 2001 From: grokas Date: Tue, 29 Jul 2025 10:35:27 -0700 Subject: [PATCH] chore: resolve issues related to Python 3.13 upgrade --- github_connector.py | 13 +++++-------- release_notes/unreleased.md | 1 + 2 files changed, 6 insertions(+), 8 deletions(-) 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