From 4711246a40f9a182b7843f161f43945d633854ab Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 2 Mar 2018 18:27:33 +0100 Subject: [PATCH] Fix bug with standalone mode --- main.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 59d08c7..1f0fb28 100755 --- a/main.py +++ b/main.py @@ -14,13 +14,8 @@ def main(config): start_kwargs[attr] = getattr(config, attr) assert hasattr(config, "api_base"), f"Config has no attribute 'api_base'!" - if "standalone" in start_kwargs: - #Why must the standalone client be so picky? - for illega_attr in ("address", "port", "hostname", "websocket_port", - "username", "password", "start_browser", "multiple_instance", - "enable_file_cache"): - del start_kwargs[illega_attr] - + if config.standalone:#it's picky :( + start_kwargs = {"standalone":config.standalone} # start the webserver: api.BASE_URL = config.api_base