From d0addab65e0e5062bacee1a37f65ffcfebec675c Mon Sep 17 00:00:00 2001 From: kedhammar Date: Wed, 22 Jan 2025 15:40:40 +0100 Subject: [PATCH] replace hard exceptions with warnings --- scripts/readscount.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/readscount.py b/scripts/readscount.py index b1201e15..028da15c 100644 --- a/scripts/readscount.py +++ b/scripts/readscount.py @@ -142,7 +142,7 @@ def sum_reads(sample, summary): name=f"{sample.name} (FASTQ reads)", ) if not demux_arts: - raise AssertionError( + logging.warning( f"Could not find any demultiplexing artifacts for sample {sample.name}." ) @@ -158,7 +158,7 @@ def sum_reads(sample, summary): for art in ongoing_demux_arts ] ) - raise AssertionError( + logging.warning( f"Sample {sample.name} has demux artifacts in ongoing steps:" + f" {ongoing_demux_steps_str}. Finish them before proceeding." )