mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-27 16:20:05 +02:00
refactor: Use json.loads instead of split for list arguments
This commit is contained in:
committed by
Cristian Vargas
parent
bc02e0ffe3
commit
65530e1e5b
@@ -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]]:
|
||||
|
Reference in New Issue
Block a user