[hg] galaxy 1497: Fix for scatterplot.py: Handling an uncaught e...

classic Classic list List threaded Threaded
1 message Options
| Threaded
Open this post in threaded view
|

[hg] galaxy 1497: Fix for scatterplot.py: Handling an uncaught e...

Nate Coraor (nate@bx.psu.edu)
details:   http://www.bx.psu.edu/hg/galaxy/rev/a17b2cd3d9a4
changeset: 1497:a17b2cd3d9a4
user:      guru
date:      Mon Sep 08 14:36:37 2008 -0400
description:
Fix for scatterplot.py: Handling an uncaught exception.

1 file(s) affected in this change:

tools/plotting/scatterplot.py

diffs (15 lines):

diff -r 2a361ee9ce3e -r a17b2cd3d9a4 tools/plotting/scatterplot.py
--- a/tools/plotting/scatterplot.py Mon Sep 08 11:15:58 2008 -0400
+++ b/tools/plotting/scatterplot.py Mon Sep 08 14:36:37 2008 -0400
@@ -44,7 +44,10 @@
                     skipped_lines += 1
                     if not first_invalid_line:
                         first_invalid_line = i + 1
-                        invalid_value = fields[column]
+                        try:
+                            invalid_value = fields[column]
+                        except:
+                            invalid_value = ''
                         invalid_column = column + 1
                     break
         else: