Skip to content

Commit c8698ac

Browse files
authored
Merge pull request #199 from britive/fix/click-exception-aws-process
fix/click-exception-aws-process
2 parents 57843db + cf35237 commit c8698ac

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@
33
> As of v1.4.0, release candidates will be published in an effort to get new features out faster while still allowing
44
> time for full QA testing before moving the release candidate to a full release.
55
6+
## v2.1.3 [2025-03-31]
7+
8+
__What's New:__
9+
10+
* None
11+
12+
__Enhancements:__
13+
14+
* None
15+
16+
__Bug Fixes:__
17+
18+
* Fixed missing catch for `ClickException` in `pybritive-aws-cred-process` after previous catch update change in `9bf6738f`
19+
20+
__Dependencies:__
21+
22+
* None
23+
24+
__Other:__
25+
26+
* None
27+
628
## v2.1.2 [2025-03-14]
729

830
__What's New:__

src/pybritive/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.1.2'
1+
__version__ = '2.1.3'

src/pybritive/helpers/aws_credential_process.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import sys
55
from sys import argv
66

7+
from click.exceptions import ClickException
8+
79

810
def _fallback_input(prompt='', stream=None):
911
if not stream:
@@ -231,7 +233,9 @@ def main():
231233

232234
try:
233235
perform_checkout(b, args)
234-
except exceptions.StepUpAuthRequiredButNotProvided:
236+
except (exceptions.StepUpAuthRequiredButNotProvided, ClickException) as e:
237+
if 'step up authentication required' not in str(e).lower():
238+
raise SystemExit(e) from e
235239
perform_checkout(b, args, otp=get_input(prompt='(pybritive) Enter OTP:'))
236240
except (
237241
exceptions.ApprovalRequiredButNoJustificationProvided,

0 commit comments

Comments
 (0)