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

Lack of metadata causes uninformative error #6

Open
JamesRunnalls opened this issue Aug 13, 2024 · 0 comments
Open

Lack of metadata causes uninformative error #6

JamesRunnalls opened this issue Aug 13, 2024 · 0 comments

Comments

@JamesRunnalls
Copy link

When ozone metadata cannot be found from Nasa, for example when Sentinel3 products are processed as soon as they are published, the code returns the following error:

TypeError: object of type 'NoneType' has no len()

This is because the find function in ancillary.py returns None when it cannot find metadata and sets res to None, this causes the error above when on line 330 the len(res) is evaluated.

If the desired behavior is for Polymer to exit when there is no metadata available, maybe it would be better to raise the error in the find function and warn the user that metadata is required for processing.

Thanks

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