Skip to content

Commit 4f8881a

Browse files
rootfsCopilot
andcommitted
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]> Signed-off-by: Huamin Chen <[email protected]>
1 parent 007a715 commit 4f8881a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bench/vllm_semantic_router_bench/dataset_implementations/math_dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def _load_raw_dataset(self):
4343
# Load the test split - try different possible dataset names
4444
try:
4545
dataset = load_dataset("hendrycks/math", split="test")
46-
except:
46+
except Exception:
4747
try:
4848
dataset = load_dataset("lighteval/MATH", split="test")
49-
except:
49+
except Exception:
5050
dataset = load_dataset("competition_math", split="test")
5151
self._dataset_cache = pd.DataFrame(dataset)
5252
return self._dataset_cache

0 commit comments

Comments
 (0)