From d58188b8609b7dfebc7326c69c60c7d52d2cba47 Mon Sep 17 00:00:00 2001 From: Tim Hovius Date: Wed, 18 Dec 2024 16:17:38 +0100 Subject: [PATCH] Fix issue where empty WebUI property is not parsed correctly --- locust/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust/web.py b/locust/web.py index 90c41fcde2..385885696b 100644 --- a/locust/web.py +++ b/locust/web.py @@ -285,7 +285,7 @@ def swarm() -> Response: if isinstance(parsed_options_value, bool): parsed_options_dict[key] = value == "true" elif parsed_options_value is None: - parsed_options_dict[key] = parsed_options_value + parsed_options_dict[key] = value or None else: parsed_options_dict[key] = type(parsed_options_dict[key])(value)