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)