Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle generic error #7600

Merged
merged 1 commit into from
Oct 28, 2024
Merged

fix: handle generic error #7600

merged 1 commit into from
Oct 28, 2024

Conversation

sidhujus
Copy link
Contributor

Which issue(s) does this change fix?

#7585 there was an instance of boto3 returning an unhandled exception

Why is this change necessary?

How does it address the issue?

This part of local is not critical to its execution so we should be fine to just blanket catch all exceptions here.

What side effects does this change have?

Mandatory Checklist

PRs will only be reviewed after checklist is complete

  • Add input/output type hints to new functions/methods
  • Write design document if needed (Do I need to write a design document?)
  • Write/update unit tests
  • Write/update integration tests
  • Write/update functional tests if needed
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sidhujus sidhujus requested a review from a team as a code owner October 22, 2024 18:32
Comment on lines 368 to 367
except (Exception):
LOG.warning("No current session found, using default AWS::AccountId")
Copy link
Contributor

Choose a reason for hiding this comment

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

Not blocking anything, but I wonder if its worth logging what exception we voided as a debug log. Since this method is a "best effort" attempt at getting an account ID, its not critical, but could help with visibility into what happened.

@hawflau hawflau added this pull request to the merge queue Oct 28, 2024
Merged via the queue into aws:develop with commit 9837c07 Oct 28, 2024
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants