Skip to content

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

@danamlewis

Description

@danamlewis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions