Skip to content

Commit 33660b0

Browse files
huachenheliLuminolT
authored andcommitted
[Small] Capture AttributeError when checking ray dependency. (#29024)
Signed-off-by: Chenheli Hua <[email protected]> Signed-off-by: LuminolT <[email protected]>
1 parent ed2491e commit 33660b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vllm/ray/lazy_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ def is_ray_initialized():
1010
return ray.is_initialized()
1111
except ImportError:
1212
return False
13+
except AttributeError:
14+
return False
1315

1416

1517
def is_in_ray_actor():
@@ -24,3 +26,5 @@ def is_in_ray_actor():
2426
)
2527
except ImportError:
2628
return False
29+
except AttributeError:
30+
return False

0 commit comments

Comments
 (0)