Skip to content

Commit 296bcee

Browse files
committed
fix ruff TRY401
1 parent 4d7a4c0 commit 296bcee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • tests/model_serving/model_server/llmd

tests/model_serving/model_server/llmd/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ def send_prefix_cache_requests(
292292
status, _ = send_chat_completions(llmisvc=llmisvc, prompt=prompt, token=token, insecure=False)
293293
if status == 200:
294294
successful += 1
295-
except Exception as e: # noqa: BLE001
296-
LOGGER.exception(f"Request {i + 1}/{count} failed: {e}")
295+
except Exception: # noqa: BLE001
296+
LOGGER.exception(f"Request {i + 1}/{count} failed")
297297
LOGGER.info(f"{successful}/{count} requests succeeded")
298298
assert successful >= count * min_ratio, f"Too many failures: {successful}/{count} (need {min_ratio * 100}%)"
299299
return successful

0 commit comments

Comments
 (0)