Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch mis-spellings of session name #37

Open
jdkent opened this issue Oct 30, 2019 · 0 comments
Open

catch mis-spellings of session name #37

jdkent opened this issue Oct 30, 2019 · 0 comments

Comments

@jdkent
Copy link
Member

jdkent commented Oct 30, 2019

attribute error is raised in line 518

Traceback (most recent call last):
  File "/usr/local/miniconda/bin/xnat_downloader", line 11, in <module>
    load_entry_point('xnat-downloader==0.1', 'console_scripts', 'xnat_downloader')()
  File "/usr/local/miniconda/lib/python2.7/site-packages/xnat_downloader-0.1-py2.7.egg/xnat_downloader/cli/run.py", line 667, in main
    overwrite_nii=opts.overwrite_nii)
  File "/usr/local/miniconda/lib/python2.7/site-packages/xnat_downloader-0.1-py2.7.egg/xnat_downloader/cli/run.py", line 518, in download_scan
    sub_name, ses_name = re.search(sub_ses_pattern, ses_dir).groups()
AttributeError: 'NoneType' object has no attribute 'groups'

I should catch and handle this case better, perhaps by writing to a log and then continuing along with processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant