Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chongshenng committed Sep 23, 2024
1 parent 6b7992b commit 62751a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/py/flwr/cli/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ def log(
)
raise typer.Exit(code=1)

if "address" in federation_config:
_log_with_superexec(federation_config, run_id, stream)
else:
if "address" not in federation_config:
typer.secho(
"❌ `flwr log` currently works with `SuperExec`. Ensure that the correct"
"`SuperExec` address is provided in the `pyproject.toml`.",
fg=typer.colors.RED,
bold=True,
)
sys.exit()
else:
_log_with_superexec(federation_config, run_id, stream)


# pylint: disable-next=too-many-branches
Expand Down

0 comments on commit 62751a1

Please sign in to comment.