From 9099a788cd7124024559c064e425ed9caef6e0ac Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Fri, 22 Jul 2016 16:28:12 -0700 Subject: [crosperf] Clean up exceptions. Found all instances of 'raise Exception' and changed them to raise something slightly more specific. Changed a few 'except Exception' statements appropriately as well. BUG=chromium:566255 TEST=None Change-Id: If2666bd55838342bc71431e5e6ab2157c2c9e125 Reviewed-on: https://chrome-internal-review.googlesource.com/270731 Commit-Ready: Caroline Tice Tested-by: Caroline Tice Reviewed-by: Yunlian Jiang --- crosperf/benchmark_run_unittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crosperf/benchmark_run_unittest.py') diff --git a/crosperf/benchmark_run_unittest.py b/crosperf/benchmark_run_unittest.py index d3a3dbc9..90270ded 100755 --- a/crosperf/benchmark_run_unittest.py +++ b/crosperf/benchmark_run_unittest.py @@ -146,7 +146,7 @@ class BenchmarkRunTest(unittest.TestCase): def FakeReadCacheException(): 'Helper function for test_run.' - raise Exception('This is an exception test; it is supposed to happen') + raise RuntimeError('This is an exception test; it is supposed to happen') def FakeAcquireMachine(): 'Helper function for test_run.' -- cgit v1.2.3