Skip to content

Commit

Permalink
Review suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: ChristianOertlin <[email protected]>
  • Loading branch information
sofstam and ChrOertlin authored Dec 5, 2023
1 parent 8f404d1 commit b2fa30c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cg/meta/workflow/nf_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def validate_qc_metrics(self, case_id: str, dry_run: bool = False) -> None:
qc_metrics_raw: dict = ReadFile.get_content_from_file(
file_format=FileFormat.YAML, file_path=metrics_deliverables_path
)
MetricsDeliverablesCondition(**qc_metrics_raw)
MetricsDeliverablesCondition.model_validate(qc_metrics_raw)
except MetricsQCError as error:
LOG.error(f"QC metrics failed for {case_id}")
self.trailblazer_api.set_analysis_status(case_id=case_id, status=AnalysisStatus.FAILED)
Expand Down

0 comments on commit b2fa30c

Please sign in to comment.