Don't crash if we can't find the flowcell run xml file
[htsworkflow.git] / htsworkflow / frontend / samples / views.py
index 3a37a8c68e1d2cd754e1c4129d213d235f68b2e7..ee426261179244cd6243aaaf4e225db0549e82aa 100644 (file)
@@ -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]