We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 196361d commit 5ac167bCopy full SHA for 5ac167b
scripts/benchmark.py
@@ -1,9 +1,8 @@
1
# list all folders in benchmark folder
2
# for each folder, run the benchmark
3
-
+import contextlib
4
import os
5
import subprocess
6
-import sys
7
8
from itertools import islice
9
from pathlib import Path
@@ -60,7 +59,7 @@ def main(
60
59
print(f.read())
61
print()
62
63
- try:
+ with contextlib.suppress(KeyboardInterrupt):
64
subprocess.run(
65
[
66
"python",
@@ -71,8 +70,6 @@ def main(
71
70
"evaluate",
72
],
73
)
74
- except KeyboardInterrupt:
75
- sys.exit(1)
76
77
78
if __name__ == "__main__":
0 commit comments