Skip to content

Commit

Permalink
Update swmmanywhere/swmmanywhere.py
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Alonso Álvarez <6095790+dalonsoa@users.noreply.github.com>
  • Loading branch information
barneydobson and dalonsoa authored Mar 15, 2024
1 parent 158807d commit 332fc18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swmmanywhere/swmmanywhere.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def swmmanywhere(config_: Path | dict):
Path(config['base_dir'])
)

for key, val in config['address_overrides'].items():
setattr(addresses,key,val)
for key, val in config.get('address_overrides', {}).items():
setattr(addresses, key, val)

# Run downloads
api_keys = yaml.safe_load(config['api_keys'].open('r'))
Expand Down

0 comments on commit 332fc18

Please sign in to comment.