Skip to content

Commit

Permalink
fix error with loading config
Browse files Browse the repository at this point in the history
  • Loading branch information
bendhouseart committed Aug 14, 2024
1 parent 5903752 commit 4b4928a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pypet2bids/pypet2bids/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@ def load_vars_from_config(
if os.path.isfile(path_to_config):
parameters = dotenv.main.dotenv_values(path_to_config)
else:
raise FileNotFoundError(path_to_config)
log = logger("pypet2bids")
log.warning(f"Unable to locate {path_to_config}, returning empty dictionary.")
parameters = {}
#raise FileNotFoundError(path_to_config)

for parameter, value in parameters.items():
try:
Expand Down

0 comments on commit 4b4928a

Please sign in to comment.