From d6b49c9c670863a33fb6d028a2dd9938fbf6c713 Mon Sep 17 00:00:00 2001 From: Chong Shen Ng Date: Mon, 23 Sep 2024 13:10:17 +0100 Subject: [PATCH] Raise typer.Exit, minor changes --- src/py/flwr/cli/log.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/py/flwr/cli/log.py b/src/py/flwr/cli/log.py index fa5de2e655a6..6915de1e00c5 100644 --- a/src/py/flwr/cli/log.py +++ b/src/py/flwr/cli/log.py @@ -126,9 +126,9 @@ def log( fg=typer.colors.RED, bold=True, ) - sys.exit() - else: - _log_with_superexec(federation_config, run_id, stream) + raise typer.Exit(code=1) + + _log_with_superexec(federation_config, run_id, stream) # pylint: disable-next=too-many-branches