Skip to content

Commit

Permalink
Merge pull request #6 from Gondnat/master
Browse files Browse the repository at this point in the history
Ensure 'proxies' is initialized
  • Loading branch information
nonPointer authored Nov 2, 2024
2 parents 442f955 + 5c944fc commit 831fba4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 831fba4

Please sign in to comment.