From 9834728651dcf5c75c524ae91a187c3d0ebb0875 Mon Sep 17 00:00:00 2001 From: Sebastian Allard Date: Mon, 15 Jan 2024 11:49:35 +0100 Subject: [PATCH] Temp fix for tracking microsalt cases in tb (#2840)(patch) --- cg/meta/workflow/microsalt/microsalt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cg/meta/workflow/microsalt/microsalt.py b/cg/meta/workflow/microsalt/microsalt.py index e670bed4e1..7532b4308b 100644 --- a/cg/meta/workflow/microsalt/microsalt.py +++ b/cg/meta/workflow/microsalt/microsalt.py @@ -311,11 +311,10 @@ def get_analyses_result_dirs(self, case_id: str) -> list[str]: matches: list[str] = [d for d in os.listdir(results_dir) if d.startswith(project_id)] if not matches: LOG.error(f"No result directory found for {case_id} with project id {project_id}") - raise MissingAnalysisDir return matches def get_case_path(self, case_id: str) -> Path: results_dir: Path = self.get_results_dir() matching_cases: list[str] = self.get_analyses_result_dirs(case_id) - case_dir: str = max(matching_cases, default=None) + case_dir: str = max(matching_cases, default="") return Path(results_dir, case_dir)