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():
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
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