Skip to content

Lack of metadata causes uninformative error #6

@JamesRunnalls

Description

@JamesRunnalls

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

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