-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ref #112