From: Diane Trout Date: Wed, 16 Jan 2013 00:55:20 +0000 (-0800) Subject: Thrown an exception if we can't parse base calling directory. X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=fc458343b8f4f15b761e9ed58d96430865e34d3a 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. --- 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):