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

Fix fatal API error due to DoesNotExist #211

Merged
merged 1 commit into from
Dec 26, 2021

Conversation

HelloYeew
Copy link
Member

When the API query cannot find the profile it will lead to 500 error with DoesNotExist. This can easily fix by catch the error on the model and use exception <models>.DoesNotExist to make it pass {} instead of the full detail.

@HelloYeew HelloYeew merged commit 122ef09 into Rurusetto:new-website Dec 26, 2021
@HelloYeew HelloYeew deleted the fix-query-error branch December 26, 2021 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant