Skip to content

Commit

Permalink
replace hard exceptions with warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Jan 22, 2025
1 parent 42ad826 commit d0addab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/readscount.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}."
)

Expand All @@ -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."
)
Expand Down

0 comments on commit d0addab

Please sign in to comment.