From abfa5301e72411867a9dc819c6ba02a0cb9e8d08 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Thu, 11 Oct 2012 16:32:27 -0700 Subject: [PATCH] Catch another lookup error. Apparently one of gerald_summary[read][lane] was a dictionary and so threw a KeyError instead of an IndexError. I might as well catch both. --- htsworkflow/frontend/samples/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htsworkflow/frontend/samples/views.py b/htsworkflow/frontend/samples/views.py index a53552c..7150d08 100644 --- a/htsworkflow/frontend/samples/views.py +++ b/htsworkflow/frontend/samples/views.py @@ -309,7 +309,7 @@ def _summary_stats(flowcell_id, lane_id, library_id): read = key.read-1 if key.read is not None else 0 try: eland_summary.clusters = gerald_summary[read][key.lane].cluster - except IndexError as e: + except (IndexError, KeyError) as e: eland_summary.clustes = None eland_summary.cycle_width = cycle_width if hasattr(eland_summary, 'genome_map'): -- 2.30.2