[cli] Maintain "old-style" for abort (#9943)

This commit is contained in:
Richard Liaw 2020-08-05 20:37:29 -07:00 committed by GitHub
parent 9b90f7db67
commit 51bad84423
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)