Skip to content

public: split BadDataError and Exception error handling #3442

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

Merged
merged 1 commit into from
Jul 3, 2025

Conversation

jcristau
Copy link
Contributor

@jcristau jcristau commented Jul 2, 2025

For BadDataError we return 400 with the exception message. For Exception, we log to sentry and let flask/connexion deal with the 500 response, which doesn't need to include details.

For BadDataError we return 400 with the exception message.
For Exception, we log to sentry and let flask/connexion deal with the 500
response, which doesn't need to include details.
@jcristau jcristau requested a review from a team as a code owner July 2, 2025 16:23
Copy link
Contributor

@hneiva hneiva left a comment

Choose a reason for hiding this comment

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

LGTM, just one sanity check

@jcristau jcristau added the public public Balrog app/api (aus5.mozilla.org; aus-api.mozilla.org) label Jul 3, 2025
@jcristau jcristau merged commit d29ab15 into mozilla-releng:main Jul 3, 2025
10 checks passed
@jcristau jcristau deleted the error-handlers branch July 3, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
public public Balrog app/api (aus5.mozilla.org; aus-api.mozilla.org)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants