PennLINC / fw-heudiconv

Heuristic-based Data Curation on Flywheel
BSD 3-Clause "New" or "Revised" License
6 stars 11 forks source link

Regex in IntendedFor Checker #41

Closed TinasheMTapera closed 4 years ago

TinasheMTapera commented 5 years ago
'NoneType' object has no attribute 'group'
Traceback (most recent call last):
  File "/Users/aguirre/miniconda3/lib/python3.7/site-packages/fw_heudiconv/convert.py", line 231, in confirm_intentions
    ses_labs = [re.search(r"ses-[a-zA-z0-9]+(?=_)", x).group() for x in full_filenames if x is not None]
  File "/Users/aguirre/miniconda3/lib/python3.7/site-packages/fw_heudiconv/convert.py", line 231, in <listcomp>

    ses_labs = [re.search(r"ses-[a-zA-z0-9]+(?=_)", x).group() for x in full_filenames if x is not None]
AttributeError: 'NoneType' object has no attribute 'group'
(base) huntsman-ve703-05737:heudiDev aguirre$ 

Gotta find a nicer way to communicate this NoneType error

TinasheMTapera commented 4 years ago

de42a9a