From 2fd59de05d922e9e4e9d49aeaf48e0def407f631 Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Wed, 19 Aug 2020 20:02:56 -0700 Subject: [PATCH] [autoscaler] hotfix - swallowed error for missing yaml (#10212) --- python/ray/autoscaler/commands.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/ray/autoscaler/commands.py b/python/ray/autoscaler/commands.py index 0bd7aa758..3ea83ff48 100644 --- a/python/ray/autoscaler/commands.py +++ b/python/ray/autoscaler/commands.py @@ -136,10 +136,13 @@ def create_or_update_cluster(config_file: str, cli_logger.abort( "Provided cluster configuration file ({}) does not exist", cf.bold(config_file)) + raise except yaml.parser.ParserError as e: handle_yaml_error(e) + raise except yaml.scanner.ScannerError as e: handle_yaml_error(e) + raise # todo: validate file_mounts, ssh keys, etc.