diff options
author | Chris Matthews <cmatthews5@apple.com> | 2018-02-13 23:36:57 +0000 |
---|---|---|
committer | Chris Matthews <cmatthews5@apple.com> | 2018-02-13 23:36:57 +0000 |
commit | cebfd4a843a0fd7821d3bb45f974128622267580 (patch) | |
tree | 55f1afb7570d4ffd947dd71434c352132c295e11 | |
parent | c21919afe1b77d2e87c91b83ac814ed3f0e0e10d (diff) |
More specific exception
git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@325079 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lnt/server/ui/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lnt/server/ui/views.py b/lnt/server/ui/views.py index c909238..23bfdc2 100644 --- a/lnt/server/ui/views.py +++ b/lnt/server/ui/views.py @@ -808,7 +808,7 @@ def v4_graph(): machine_id = int(machine_id_str) test_id = int(test_id_str) field_index = int(field_index_str) - except Exception: + except ValueError: return abort(400) if not (0 <= field_index < len(ts.sample_fields)): |