Skip to content

Commit

Permalink
fix case when west/executable/datasets is None (westpa#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyleung521 authored Jun 26, 2024
1 parent d2485ed commit 9ccdcdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/westpa/core/propagators/executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def __init__(self, rc=None):
self.data_info['log'] = {'name': 'seglog', 'loader': seglog_loader, 'enabled': store_h5, 'filename': None, 'dir': False}

# Grab config from west.executable.datasets, else fallback to west.data.datasets.
dataset_configs = config.get(["west", "executable", "datasets"], config.get(['west', 'data', 'datasets'], {}))
dataset_configs = config.get(["west", "executable", "datasets"]) or config.get(['west', 'data', 'datasets'], {})
for dsinfo in dataset_configs:
try:
dsname = dsinfo['name']
Expand Down

0 comments on commit 9ccdcdb

Please sign in to comment.