Skip to content

Commit 312e139

Browse files
pvelascoyarikoptic
andauthored
Update heudiconv/bids.py
Don't hardcode what is stored in SHIM_KEY Co-authored-by: Yaroslav Halchenko <[email protected]>
1 parent f8c5528 commit 312e139

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

heudiconv/bids.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,9 @@ def get_shim_setting(json_file):
529529
try:
530530
shims = data[SHIM_KEY]
531531
except KeyError as e:
532-
lgr.error('File %s does not have "ShimSetting".'
533-
'Please use a different "matching_parameters" in your heuristic file', json_file)
532+
lgr.error('File %s does not have "%s". '
533+
'Please use a different "matching_parameters" in your heuristic file',
534+
json_file, SHIM_KEY)
534535
raise KeyError
535536
return shims
536537

0 commit comments

Comments
 (0)