Skip to content

Commit 73fd965

Browse files
Fix bench.py to handle missing directories
1 parent 3e84a79 commit 73fd965

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Benchmarks/bench.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def __init__(self):
7171

7272
def add_dir(subpath):
7373
path = os.path.join(suites_path, subpath)
74+
if not os.path.exists(path):
75+
return
7476
for filename in os.listdir(path):
7577
if filename.endswith(".wasm"):
7678
targets.append(os.path.join(path, filename))

0 commit comments

Comments
 (0)