"ssh:/git@developer.sourcefind.cn:2222/OpenDAS/vllm_cscc.git" did not exist on "f90d34b4985dd57262b93be2b75c9099babb2188"
Unverified Commit e4c3182c authored by Chenheli Hua's avatar Chenheli Hua Committed by GitHub
Browse files

[Small] Capture AttributeError when checking ray dependency. (#29024)


Signed-off-by: default avatarChenheli Hua <huachenheli@outlook.com>
parent b4734b95
...@@ -10,6 +10,8 @@ def is_ray_initialized(): ...@@ -10,6 +10,8 @@ def is_ray_initialized():
return ray.is_initialized() return ray.is_initialized()
except ImportError: except ImportError:
return False return False
except AttributeError:
return False
def is_in_ray_actor(): def is_in_ray_actor():
...@@ -24,3 +26,5 @@ def is_in_ray_actor(): ...@@ -24,3 +26,5 @@ def is_in_ray_actor():
) )
except ImportError: except ImportError:
return False return False
except AttributeError:
return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment