From 2f98a5921d879ac4d2c23699b3d67aa926504b24 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Mon, 9 May 2011 14:53:17 -0700 Subject: [PATCH] Report missing directory names to help diagnose sequence scanning problems --- htsworkflow/pipelines/sequences.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htsworkflow/pipelines/sequences.py b/htsworkflow/pipelines/sequences.py index 84bafbf..24cf884 100644 --- a/htsworkflow/pipelines/sequences.py +++ b/htsworkflow/pipelines/sequences.py @@ -216,6 +216,10 @@ def scan_for_sequences(dirs): sequences = [] for d in dirs: logging.info("Scanning %s for sequences" % (d,)) + if not os.path.exists(d): + logging.warn("Flowcell directory %s does not exist" % (d,)) + continue + for path, dirname, filenames in os.walk(d): for f in filenames: seq = None -- 2.30.2