From: Diane Trout Date: Thu, 11 Oct 2012 23:32:27 +0000 (-0700) Subject: Catch another lookup error. X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=abfa5301e72411867a9dc819c6ba02a0cb9e8d08 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. --- 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'):