Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle assignment missing when fetching content (#13)
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]>
- Loading branch information