[LNT] r286309 - Better to have an explicit exception to detect

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 15:24:54 PST 2016


Author: cmatthews
Date: Tue Nov  8 17:24:54 2016
New Revision: 286309

URL: http://llvm.org/viewvc/llvm-project?rev=286309&view=rev
Log:
Better to have an explicit exception to detect

Modified:
    lnt/trunk/lnt/server/ui/views.py

Modified: lnt/trunk/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/views.py?rev=286309&r1=286308&r2=286309&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/views.py (original)
+++ lnt/trunk/lnt/server/ui/views.py Tue Nov  8 17:24:54 2016
@@ -1321,7 +1321,7 @@ def v4_matrix():
             machine_id = int(machine_id_str)
             test_id = int(test_id_str)
             field_index = int(field_index_str)
-        except:
+        except ValueError:
             err_msg = "data {} was malformed. {} must be int.int.int"
             return abort(400, err_msg.format(name, value))
 




More information about the llvm-commits mailing list