Skip to content

Commit 7c9d649

Browse files
committed
Bugfix for machines that don't match up with ordering
1 parent 4f84f80 commit 7c9d649

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

bench_runner/scripts/generate_results.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ def sort_runner_names(runner_names: Iterable[str]) -> list[str]:
126126
def sorter(val):
127127
if val is None:
128128
return ()
129-
return order.index(val.split()[0]), val
129+
try:
130+
idx = order.index(val.split()[0])
131+
except ValueError:
132+
idx = -1
133+
return idx, val
130134

131135
return sorted(runner_names, key=sorter)
132136

0 commit comments

Comments
 (0)