Skip to content

Commit 5ac167b

Browse files
committed
Revert part of PR
1 parent 196361d commit 5ac167b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/benchmark.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# list all folders in benchmark folder
22
# for each folder, run the benchmark
3-
3+
import contextlib
44
import os
55
import subprocess
6-
import sys
76

87
from itertools import islice
98
from pathlib import Path
@@ -60,7 +59,7 @@ def main(
6059
print(f.read())
6160
print()
6261

63-
try:
62+
with contextlib.suppress(KeyboardInterrupt):
6463
subprocess.run(
6564
[
6665
"python",
@@ -71,8 +70,6 @@ def main(
7170
"evaluate",
7271
],
7372
)
74-
except KeyboardInterrupt:
75-
sys.exit(1)
7673

7774

7875
if __name__ == "__main__":

0 commit comments

Comments
 (0)