diff --git a/eoreader/stac/stac_extensions.py b/eoreader/stac/stac_extensions.py index e8ae9d11..f7d4e242 100644 --- a/eoreader/stac/stac_extensions.py +++ b/eoreader/stac/stac_extensions.py @@ -56,6 +56,7 @@ get_media_type, repr_multiline_str, ) +from eoreader.exceptions import InvalidProductError class EoExt: @@ -77,7 +78,7 @@ def __init__(self, prod, **kwargs): try: if prod._has_cloud_cover: self.cloud_cover = prod.get_cloud_cover() - except AttributeError: + except (AttributeError, InvalidProductError): pass self.bands = prod.bands