Skip to content

Conversation

@zliang-akamai
Copy link
Member

@zliang-akamai zliang-akamai commented Nov 3, 2023

📝 Description

We imported boto3 in objects.py which skips the boto3 check logic __init__.py. Added try ... except ... block to ignore the exception and let the call function in __init__.py to print the error message.

✔️ How to Test

make install
python3 -m pip uninstall boto3 -y
linode obj ls

GHA run passed: https://github.com/linode/linode-cli/actions/runs/6750190271

@zliang-akamai zliang-akamai requested a review from a team as a code owner November 3, 2023 18:24
@zliang-akamai zliang-akamai requested review from lgarber-akamai and ykim-akamai and removed request for a team November 3, 2023 18:24
@zliang-akamai zliang-akamai changed the title Let call function handle boto3 missing and print err msg Let call function print boto3 error message in obj extension Nov 3, 2023
Copy link
Contributor

@ykim-akamai ykim-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GJ!, works well locally

Copy link
Contributor

@jcallahan-akamai jcallahan-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix! It works as expected locally.

@zliang-akamai zliang-akamai changed the title Let call function print boto3 error message in obj extension Fix boto3 missing error message in obj extension Nov 5, 2023
@zliang-akamai zliang-akamai merged commit fcbc407 into dev Nov 5, 2023
@zliang-akamai zliang-akamai deleted the zhiwei/fix-boto3-detection-and-err-msg branch November 5, 2023 04:26
vshanthe pushed a commit to vshanthe/linode-cli that referenced this pull request Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants