From fc458343b8f4f15b761e9ed58d96430865e34d3a Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Tue, 15 Jan 2013 16:55:20 -0800 Subject: [PATCH] Thrown an exception if we can't parse base calling directory. While working on making the alignment parsing optional. I made a mistake copying some files around, that led to an unparseable base call directory. I thought I should try to catch and report that error condition. --- htsworkflow/pipelines/bustard.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htsworkflow/pipelines/bustard.py b/htsworkflow/pipelines/bustard.py index b5bf7e1..99f231d 100644 --- a/htsworkflow/pipelines/bustard.py +++ b/htsworkflow/pipelines/bustard.py @@ -365,6 +365,9 @@ def bustard(pathname): else: b = bustard_from_ga1(pathname) + if not b: + raise RuntimeError("Unable to parse base-call directory at %s" % (pathname,)) + return b def bustard_from_ga1(pathname): -- 2.30.2