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

Meta error on error around member numbers missing leading zero #103

Open
danamlewis opened this issue Jul 9, 2020 · 0 comments
Open

Meta error on error around member numbers missing leading zero #103

danamlewis opened this issue Jul 9, 2020 · 0 comments

Comments

@danamlewis
Copy link

Situation: attempting to use --excludelist list.txt to download data raised this error:

https://github.com/OpenHumans/open-humans-api/blob/master/ohapi/utils_fs.py#L522 but did not display L533

Traceback (most recent call last):
  File "/Users/danamichellelewis/anaconda3/bin/ohproj-download", line 11, in <module>
    load_entry_point('open-humans-api==0.2.5', 'console_scripts', 'ohproj-download')()
  File "/Users/danamichellelewis/anaconda3/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/danamichellelewis/anaconda3/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/danamichellelewis/anaconda3/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/danamichellelewis/anaconda3/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/danamichellelewis/anaconda3/lib/python3.6/site-packages/ohapi/command_line.py", line 65, in download_cli
    excludelist)
  File "/Users/danamichellelewis/anaconda3/lib/python3.6/site-packages/ohapi/command_line.py", line 111, in download
    excludelist = read_id_list(excludelist)
  File "/Users/danamichellelewis/anaconda3/lib/python3.6/site-packages/ohapi/utils_fs.py", line 522, in read_id_list
    raise('Each line in whitelist or blacklist is expected '
TypeError: exceptions must derive from BaseException

Situation was resolved by adding the dropped leading zero to the list of member numbers, but anyone's list with the leading zero drop will flag this error. This error may need to be fixed regarding the leading zero's, but also the second line of text is useful for resolving the error and did not display.

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