Skip to content

Commit 77ab316

Browse files
[gardening] Avoid blind exception
1 parent b704f14 commit 77ab316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/scripts/Benchmark_RuntimeLeaksRunner.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class LeaksRunnerBenchmarkDriver(perf_test_driver.BenchmarkDriver):
9494
raise RuntimeError("Expected one line of output")
9595
if result != 0:
9696
raise RuntimeError("Process segfaulted")
97-
except:
97+
except Exception:
9898
sys.stderr.write("Child Process Failed! (%s,%s)\n" % (
9999
data['path'], data['test_name']))
100100
sys.stderr.flush()
@@ -110,7 +110,7 @@ class LeaksRunnerBenchmarkDriver(perf_test_driver.BenchmarkDriver):
110110

111111
total_count = d['objc_count'] + d['swift_count']
112112
return total_count
113-
except:
113+
except Exception:
114114
tmp = (data['path'], data['test_name'])
115115
sys.stderr.write("Failed parse output! (%s,%s)\n" % tmp)
116116
sys.stderr.flush()

0 commit comments

Comments
 (0)