Skip to content

Commit

Permalink
Merge branch 'main' into merge_layer
Browse files Browse the repository at this point in the history
Signed-off-by: Aaditya Sinha <[email protected]>
  • Loading branch information
aadityasinha-dotcom authored Sep 22, 2023
2 parents 49221bd + 59498a3 commit b0668ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to the Zowe Client Python SDK will be documented in this fil

- Bug: Fixed profile merge order to match Node.js SDK
- Feature: Added method to load profile properties from environment variables
- 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)
- Bugfix: Fixed issue for datasets and jobs with special characters in URL [#211] (https://github.com/zowe/zowe-client-python-sdk/issues/211)
- Feature: Added method to load profile properties from environment variables
4 changes: 2 additions & 2 deletions src/core/zowe/core_for_zowe_sdk/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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")
Expand Down

0 comments on commit b0668ea

Please sign in to comment.