Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e4c3182c
Unverified
Commit
e4c3182c
authored
Nov 20, 2025
by
Chenheli Hua
Committed by
GitHub
Nov 20, 2025
Browse files
[Small] Capture AttributeError when checking ray dependency. (#29024)
Signed-off-by:
Chenheli Hua
<
huachenheli@outlook.com
>
parent
b4734b95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vllm/ray/lazy_utils.py
vllm/ray/lazy_utils.py
+4
-0
No files found.
vllm/ray/lazy_utils.py
View file @
e4c3182c
...
...
@@ -10,6 +10,8 @@ def is_ray_initialized():
return
ray
.
is_initialized
()
except
ImportError
:
return
False
except
AttributeError
:
return
False
def
is_in_ray_actor
():
...
...
@@ -24,3 +26,5 @@ def is_in_ray_actor():
)
except
ImportError
:
return
False
except
AttributeError
:
return
False
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment