Skip to content

Commit

Permalink
feat(framework) Log a warning when both --flwr-dir and `--isolation…
Browse files Browse the repository at this point in the history
…` are set (#4333)
  • Loading branch information
panh99 authored Oct 13, 2024
1 parent 2edee31 commit 4bcb050
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/py/flwr/client/supernode/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ def run_supernode() -> None:

_warn_deprecated_server_arg(args)

# Check if both `--flwr-dir` and `--isolation` were set
if args.flwr_dir is not None and args.isolation is not None:
log(
WARN,
"Both `--flwr-dir` and `--isolation` were specified. "
"Ignoring `--flwr-dir`.",
)

root_certificates = _get_certificates(args)
load_fn = get_load_client_app_fn(
default_app_ref="",
Expand Down

0 comments on commit 4bcb050

Please sign in to comment.