Thrown an exception if we can't parse base calling directory.
[htsworkflow.git] / htsworkflow / pipelines / bustard.py
index b5bf7e11a925940b284e655932c4aa602b523838..99f231dd73e748a0c88b528f4489968ab20b8428 100644 (file)
@@ -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):