diff --git a/helper.py b/helper.py index 7c555da..5293805 100644 --- a/helper.py +++ b/helper.py @@ -138,6 +138,10 @@ def from_config(config: dict) -> Site: with open(sys.argv[1], "r", encoding="utf-8") as f: config = yaml.load(f, Loader=FullLoader) +# Ensure 'proxies' is initialized +if 'proxies' not in config or config['proxies'] is None: + config['proxies'] = [] + for site in sites: if site.data != None: try: