From 4bcb0500f33e9eb96c974dd1e320cd2c017a84c8 Mon Sep 17 00:00:00 2001 From: Heng Pan Date: Sun, 13 Oct 2024 19:41:05 +0100 Subject: [PATCH] feat(framework) Log a warning when both `--flwr-dir` and `--isolation` are set (#4333) --- src/py/flwr/client/supernode/app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/py/flwr/client/supernode/app.py b/src/py/flwr/client/supernode/app.py index ea7613667baa..9e12c5844670 100644 --- a/src/py/flwr/client/supernode/app.py +++ b/src/py/flwr/client/supernode/app.py @@ -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="",