Skip to content

Commit 2c16965

Browse files
Apply suggestions from code review
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent afb8d6c commit 2c16965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trinity/utils/dlc_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def is_running() -> bool:
4141
"""Check if ray cluster is running."""
4242
python_dir = os.path.dirname(sys.executable)
4343
ray_path = os.path.join(python_dir, "ray")
44-
if os.path.exists(ray_path) is False:
44+
if not os.path.exists(ray_path):
4545
ray_path = "ray"
46-
ret = subprocess.run(f"{ray_path} status", shell=True, capture_output=True)
46+
ret = subprocess.run([ray_path, "status"], capture_output=True)
4747
return ret.returncode == 0
4848

4949

0 commit comments

Comments
 (0)