From 9c19b14b1e5ff856322850d46cb39fe9d90b2e7c Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Wed, 5 Aug 2020 20:37:29 -0700 Subject: [PATCH] [cli] Maintain "old-style" for abort (#9943) --- python/ray/autoscaler/cli_logger.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/ray/autoscaler/cli_logger.py b/python/ray/autoscaler/cli_logger.py index 9d0571fa1..b686bfb9c 100644 --- a/python/ray/autoscaler/cli_logger.py +++ b/python/ray/autoscaler/cli_logger.py @@ -328,6 +328,9 @@ class _CliLogger(): Print an error and throw an exception to terminate the program (the exception will not print a message). """ + if self.old_style: + return + if msg is not None: self.error(msg, *args, **kwargs)