Skip to content

Commit 9449810

Browse files
committed
Minor changes in "add_taskname_to_infofile"
Addresses initial comments in PR #470
1 parent 0ed5f0c commit 9449810

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

heudiconv/convert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,8 @@ def add_taskname_to_infofile(infofile):
649649
op.basename(infofile))
650650
.group(0).split('_')[0])
651651
except AttributeError:
652-
pass
652+
lgr.warning("Failed to find task field in {0}.".format(infofile))
653+
return
653654

654655
# write to outfile
655656
save_json(infofile, meta_info)

0 commit comments

Comments
 (0)