From 36382beb8ce2874743f76268f911c7c919758fb9 Mon Sep 17 00:00:00 2001 From: samadpls Date: Fri, 15 Sep 2023 18:22:51 +0500 Subject: [PATCH 1/3] Fixed exception handling in session.py Signed-off-by: samadpls --- src/core/zowe/core_for_zowe_sdk/session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/zowe/core_for_zowe_sdk/session.py b/src/core/zowe/core_for_zowe_sdk/session.py index 5d5cc6cb..5b85f652 100644 --- a/src/core/zowe/core_for_zowe_sdk/session.py +++ b/src/core/zowe/core_for_zowe_sdk/session.py @@ -45,7 +45,7 @@ def __init__(self, props: dict) -> None: if props.get("host") is not None: self.session: ISession = ISession(host=props.get("host")) else: - raise "Host must be supplied" + raise Exception("Host must be supplied") # determine authentication type if props.get("user") is not None and props.get("password") is not None: @@ -61,7 +61,7 @@ def __init__(self, props: dict) -> None: self.session.tokenValue = props.get("tokenValue") self.session.type = session_constants.AUTH_TYPE_BEARER else: - raise "An authentication method must be supplied" + raise Exception("An authentication method must be supplied") # set additional parameters self.session.basePath = props.get("basePath") From fa0dc9401dc7b66d34dfe55c1dc63e29a2f7f727 Mon Sep 17 00:00:00 2001 From: Abdul Samad Siddiqui Date: Wed, 20 Sep 2023 20:23:27 +0300 Subject: [PATCH 2/3] Added - Bugfix: exception handling Signed-off-by: Abdul Samad Siddiqui --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc3ec78c..74361e78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to the Zowe Client Python SDK will be documented in this fil ## Recent Changes - Bugfix: Fixed issue for datasets and jobs with special characters in URL [#211] (https://github.com/zowe/zowe-client-python-sdk/issues/211) - +- Bugfix: Fixed exception handling in session.py [#217] (https://github.com/zowe/zowe-client-python-sdk/issues/217) - Feature: Added a CredentialManager class to securely retrieve values from credentials and manage multiple credential entries on Windows [#134](https://github.com/zowe/zowe-client-python-sdk/issues/134) - Feature: Added method to load profile properties from environment variables From 79d8910fa7927c79bbb7ad5c23786d58932aa3c7 Mon Sep 17 00:00:00 2001 From: Abdul Samad Siddiqui Date: Wed, 20 Sep 2023 20:51:34 +0300 Subject: [PATCH 3/3] Update CHANGELOG.md Signed-off-by: Abdul Samad Siddiqui --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74361e78..0c813bb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to the Zowe Client Python SDK will be documented in this fil ## Recent Changes - Bugfix: Fixed issue for datasets and jobs with special characters in URL [#211] (https://github.com/zowe/zowe-client-python-sdk/issues/211) -- Bugfix: Fixed exception handling in session.py [#217] (https://github.com/zowe/zowe-client-python-sdk/issues/217) +- Bugfix: Fixed exception handling in session.py [#213] (https://github.com/zowe/zowe-client-python-sdk/issues/213) - Feature: Added a CredentialManager class to securely retrieve values from credentials and manage multiple credential entries on Windows [#134](https://github.com/zowe/zowe-client-python-sdk/issues/134) - Feature: Added method to load profile properties from environment variables