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 assignment missing when fetching content #13

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

darius-m
Copy link
Collaborator

Using "MUST_EXIST" throws an error if the assignment course module is missing or multiple assignments match the criteria, making the course inaccessible, as the error thrown by the block module bubbles up.

This change catches the trown exceptions and displays the "no assignment selected" message as the content.

Using "MUST_EXIST" throws an error if the assignment course module is
missing or multiple assignments match the criteria, making the course
inaccessible, as the error thrown by the block module bubbles up.

This change catches the trown exceptions and displays the "no assignment
selected" message as the content.

Signed-off-by: Darius Mihai <[email protected]>
@Jokeswar Jokeswar merged commit 4b63b54 into open-education-hub:master Oct 17, 2024
0 of 6 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.

2 participants