diff --git a/src/addon/mod/assign/providers/assign.ts b/src/addon/mod/assign/providers/assign.ts index b30a7490d..c6c3bf8cf 100644 --- a/src/addon/mod/assign/providers/assign.ts +++ b/src/addon/mod/assign/providers/assign.ts @@ -269,6 +269,11 @@ export class AddonModAssignProvider { return assignment.grades; } } else if (response.warnings && response.warnings.length) { + if (response.warnings[0].warningcode == 3) { + // No grades found. + return []; + } + return Promise.reject(response.warnings[0]); }