Skip to content

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

Draft
jonathanreveille wants to merge 1 commit into
masterfrom
fix_aws_uncaught_error_boto3_client
Draft

馃悰(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

@jonathanreveille jonathanreveille commented Jul 22, 2026

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

Note : In the meantime, we have decided to stop cron jobs that would call AWS services.

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
@jonathanreveille
jonathanreveille marked this pull request as draft August 24, 2026 09:29
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