From: Diane Trout Date: Tue, 31 Mar 2009 01:28:14 +0000 (+0000) Subject: provide an error message if no run is found with the --use-run option X-Git-Tag: 0.2.0.3~5 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=232ff351b32f9b2648431db5c7d878a45a56b2fa provide an error message if no run is found with the --use-run option --- diff --git a/scripts/runfolder b/scripts/runfolder index dcdaebe..628050e 100644 --- a/scripts/runfolder +++ b/scripts/runfolder @@ -93,7 +93,11 @@ def main(cmdlist=None): # look for manually specified run if opt.use_run is not None: - runs.append(runfolder.get_specific_run(opt.use_run)) + specific_run = runfolder.get_specific_run(opt.use_run) + if specific_run is not None: + runs.append(specific_run) + else: + logging.warn("Couldn't find a run in %s" % (opt.use_run,)) # scan runfolders for runs for run_pattern in args: