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

112 improve exception handling #116

Merged
merged 5 commits into from
Aug 9, 2024
Merged

Conversation

sylvanie85
Copy link
Contributor

ref #112

@sylvanie85 sylvanie85 linked an issue Aug 5, 2024 that may be closed by this pull request
2 tasks
@sylvanie85
Copy link
Contributor Author

Hi @Francois-Werbrouck and @ChromaticPanic here's a PR to improve exception handling on the backend. What do you think needs to be added?

I think I'll also create the same issue for the datastore to check if all nachet functions and requests handle relevant exceptions.

print(error)
return jsonify([f"GetUserIdError: {str(error)}"]), 400
return jsonify([f"Datastore Error retrieving user id for email {email} : {str(error)}"]), 400
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we make this a different return code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know if it's relevant to use different codes, it depends on the frontend I think, what do you think @ChromaticPanic?

Copy link
Contributor

@Francois-Werbrouck Francois-Werbrouck left a comment

Choose a reason for hiding this comment

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

LGTM

@sylvanie85 sylvanie85 marked this pull request as ready for review August 9, 2024 17:09
@sylvanie85 sylvanie85 requested a review from a team as a code owner August 9, 2024 17:09
@sylvanie85 sylvanie85 merged commit e159539 into main Aug 9, 2024
7 of 8 checks passed
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.

Improve exception handling
3 participants