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

register-nanopore.py throws attribute error if no unclassified folder was provided #84

Open
Steffengreiner opened this issue Jun 7, 2021 · 0 comments
Labels

Comments

@Steffengreiner
Copy link
Contributor

Describe the bug
Trying to upload a nanopore datastructure which contains no unclassified folders leads to following attribute error:

Traceback (most recent call last):
File "../core-plugins/QBIC/1/dss/drop-boxes/register-nanopore-dropbox/register-nanopore.py", line 199, in prepareUnclassifiedData
relativePath = unclassifiedDataObject.getRelativePath()
AttributeError: 'NoneType' object has no attribute 'getRelativePath'

Sadly this leads to an abort of the data upload.

To reproduce
Upload datastructure similiar to the one outlined in the "valid-json" example specified in data-model-lib.

Expected behavious
According to the schema specified in data-model-lib an "unclassified" folder is currently not required. Therefore the upload should run through even if no unclassified folders were provided

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

No branches or pull requests

1 participant