From 4cd01dc505bbadf8e57a2a13006e6a3b745ad6e8 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Fri, 20 Mar 2015 16:24:55 -0700 Subject: [PATCH] filter out None c.times in list of potential times --- htsworkflow/pipelines/runfolder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htsworkflow/pipelines/runfolder.py b/htsworkflow/pipelines/runfolder.py index b12af02..a5b98a6 100644 --- a/htsworkflow/pipelines/runfolder.py +++ b/htsworkflow/pipelines/runfolder.py @@ -210,7 +210,7 @@ class PipelineRun(object): """ if self._name is None: components = [self.image_analysis, self.bustard, self.gerald] - tmax = max([ c.time for c in components if c ]) + tmax = max([ c.time for c in components if c and c.time ]) timestamp = time.strftime('%Y-%m-%d', time.localtime(tmax)) self._name = 'run_' + self.flowcell_id + "_" + timestamp + '.xml' return self._name -- 2.30.2