From 3fdc83b0fefe8721a79649a34129da55f9bccf0d Mon Sep 17 00:00:00 2001 From: fleisch Date: Sat, 20 May 2023 19:09:57 +0200 Subject: [PATCH] quality measure return Unknown of N/A --- .../bioinf/ms/middleware/compounds/CompoundController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sirius_rest_service/src/main/java/de/unijena/bioinf/ms/middleware/compounds/CompoundController.java b/sirius_rest_service/src/main/java/de/unijena/bioinf/ms/middleware/compounds/CompoundController.java index ca1debdbb5..31a611c16d 100644 --- a/sirius_rest_service/src/main/java/de/unijena/bioinf/ms/middleware/compounds/CompoundController.java +++ b/sirius_rest_service/src/main/java/de/unijena/bioinf/ms/middleware/compounds/CompoundController.java @@ -246,8 +246,7 @@ private EnumSet asCompoundQualityData(Insta .getAnnotation(Ms2Experiment.class) .flatMap(exp -> exp.getAnnotation(CompoundQuality.class)) .map(CompoundQuality::getFlags) - .orElseThrow(()-> new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, - "Compound with ID '" + instance+ "' has no Quality information!")); + .orElse(EnumSet.of(CompoundQuality.CompoundQualityFlag.UNKNOWN)); }