From: Diane Trout Date: Sat, 4 Apr 2009 00:41:40 +0000 (+0000) Subject: Don't crash if we can't find the flowcell run xml file X-Git-Tag: 0.2.0.4~2 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=85f5f1c84178d63f0f5cda4c91f38f932979c723 Don't crash if we can't find the flowcell run xml file --- diff --git a/htsworkflow/frontend/samples/views.py b/htsworkflow/frontend/samples/views.py index 3a37a8c..ee42626 100644 --- a/htsworkflow/frontend/samples/views.py +++ b/htsworkflow/frontend/samples/views.py @@ -310,7 +310,10 @@ def get_eland_result_type(pathname): def _make_eland_results(flowcell_id, lane, interesting_flowcells): - cur_fc = interesting_flowcells[flowcell_id] + cur_fc = interesting_flowcells.get(flowcell_id, None) + if cur_fc is None: + return [] + results = [] for cycle in cur_fc.keys(): result_path = cur_fc[cycle]['eland_results'][lane]