From 996b486adb6c60c33cadcc269e21342da7a30f7c Mon Sep 17 00:00:00 2001 From: theborch Date: Mon, 31 Mar 2025 10:21:34 -0500 Subject: [PATCH 1/2] fix:catch ClickException after previous CLI update --- src/pybritive/helpers/aws_credential_process.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pybritive/helpers/aws_credential_process.py b/src/pybritive/helpers/aws_credential_process.py index 82a512f..ce7c2f1 100644 --- a/src/pybritive/helpers/aws_credential_process.py +++ b/src/pybritive/helpers/aws_credential_process.py @@ -4,6 +4,8 @@ import sys from sys import argv +from click.exceptions import ClickException + def _fallback_input(prompt='', stream=None): if not stream: @@ -231,7 +233,9 @@ def main(): try: perform_checkout(b, args) - except exceptions.StepUpAuthRequiredButNotProvided: + except (exceptions.StepUpAuthRequiredButNotProvided, ClickException) as e: + if 'step up authentication required' not in str(e).lower(): + raise SystemExit(e) from e perform_checkout(b, args, otp=get_input(prompt='(pybritive) Enter OTP:')) except ( exceptions.ApprovalRequiredButNoJustificationProvided, From cf35237b5ff75e1531debddf5e2ee3bf16041711 Mon Sep 17 00:00:00 2001 From: theborch Date: Mon, 31 Mar 2025 10:26:28 -0500 Subject: [PATCH 2/2] v2.1.3 --- CHANGELOG.md | 22 ++++++++++++++++++++++ src/pybritive/__init__.py | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a45fae..2a8dbce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,28 @@ > As of v1.4.0, release candidates will be published in an effort to get new features out faster while still allowing > time for full QA testing before moving the release candidate to a full release. +## v2.1.3 [2025-03-31] + +__What's New:__ + +* None + +__Enhancements:__ + +* None + +__Bug Fixes:__ + +* Fixed missing catch for `ClickException` in `pybritive-aws-cred-process` after previous catch update change in `9bf6738f` + +__Dependencies:__ + +* None + +__Other:__ + +* None + ## v2.1.2 [2025-03-14] __What's New:__ diff --git a/src/pybritive/__init__.py b/src/pybritive/__init__.py index f811561..2d31b1c 100644 --- a/src/pybritive/__init__.py +++ b/src/pybritive/__init__.py @@ -1 +1 @@ -__version__ = '2.1.2' +__version__ = '2.1.3'