mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 02:22:13 +08:00
Remove instances of 'raise Exception' (#7523)
This commit is contained in:
@@ -234,7 +234,7 @@ class Monitor:
|
||||
ray.ray_constants.AUTOSCALER_RESOURCE_REQUEST_CHANNEL):
|
||||
message_handler = self.autoscaler_resource_request_handler
|
||||
else:
|
||||
raise Exception("This code should be unreachable.")
|
||||
assert False, "This code should be unreachable."
|
||||
|
||||
# Call the handler.
|
||||
message_handler(channel, data)
|
||||
|
||||
Reference in New Issue
Block a user