Skip to content

🐛(backend) catch ClientError in _get_items to avoid crashing - #2758

Open
jonathanreveille wants to merge 1 commit into
masterfrom
fix_aws_uncaught_error_boto3_client
Open

🐛(backend) catch ClientError in _get_items to avoid crashing#2758
jonathanreveille wants to merge 1 commit into
masterfrom
fix_aws_uncaught_error_boto3_client

Conversation

@jonathanreveille

Copy link
Copy Markdown
Member

Purpose

We have portions of code still calls in staging AWS services that we don't use it anymore. Those portion of code still calls boto3 client that hits AWS. The django commands that triggers those portion of code will systematically fail and raise uncaught errors in our sentry. To exit in a proper way, we return an empty list when the credentials are not set.

Proposal

  • avoid raising unhandled error in our sentry by catching better the exception when aws credentials are not set for django commands

We have portions of code still calling AWS services and
we don't use it anymore. Those portion of code still
calls boto3 client that hits AWS. The django commands
that triggers those portion of code will systematically
fail and raise uncaught errors in our sentry.
To exit in a proper way, we return an empty list when the
credentials are not set.
@jonathanreveille jonathanreveille changed the title 🐛(backend) catch ClientError in _get_items to avoid crashing 🐛(backend) catch ClientError in _get_items to avoid crashing Jul 22, 2026
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.

1 participant