From 65530e1e5b5afdeda016caa3bdd763d057cbb8b3 Mon Sep 17 00:00:00 2001 From: Cristian Date: Thu, 15 Oct 2020 08:16:08 -0500 Subject: [PATCH] refactor: Use json.loads instead of split for list arguments --- archivebox/config/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archivebox/config/__init__.py b/archivebox/config/__init__.py index 9c4a63b1..f2dae1ef 100644 --- a/archivebox/config/__init__.py +++ b/archivebox/config/__init__.py @@ -364,9 +364,9 @@ def load_config_val(key: str, return int(val) elif type is list: - return val.split(" ") + return json.loads(val) - raise Exception('Config values can only be str, bool, int or list') + raise Exception('Config values can only be str, bool, int or json') def load_config_file(out_dir: str=None) -> Optional[Dict[str, str]]: