From 85f5f1c84178d63f0f5cda4c91f38f932979c723 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Sat, 4 Apr 2009 00:41:40 +0000 Subject: [PATCH] Don't crash if we can't find the flowcell run xml file --- htsworkflow/frontend/samples/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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] -- 2.30.2