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

Handle retrieve calls to classroom that doesnt' exist #11

Open
BbrSofiane opened this issue Oct 27, 2021 · 0 comments
Open

Handle retrieve calls to classroom that doesnt' exist #11

BbrSofiane opened this issue Oct 27, 2021 · 0 comments
Assignees
Labels
priority:medium type:bug Something isn't working

Comments

@BbrSofiane
Copy link
Member

Detailed Description

When attempting to retrieve a classroom with a valid UUID but the classroom object does not exist, an unhandled exception is raised: Classroom.DoesNotExist.

Possible Implementation

Catch the expression and return a Response with 404 status.

Your Environment

  • Version used: dt-classroom 0.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:medium type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant