diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java index 7dcc66cd..d69401ce 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java @@ -756,9 +756,15 @@ public class ExamDAOImpl implements ExamDAO { return lmsSetupToRecordMapping .entrySet() .stream() - .flatMap(entry -> toDomainModel(entry.getKey(), entry.getValue(), cached) - .getOrThrow() - .stream()) + .flatMap(entry -> toDomainModel( + entry.getKey(), + entry.getValue(), + cached) + .onError(error -> log.error( + "Failed to get quizzes form LMS Setup: {}", + entry.getKey(), error)) + .getOr(Collections.emptyList()) + .stream()) .collect(Collectors.toList()); }); }