diff --git a/eodag_cube/api/product/drivers/__init__.py b/eodag_cube/api/product/drivers/__init__.py index 28d23dd..edbec67 100644 --- a/eodag_cube/api/product/drivers/__init__.py +++ b/eodag_cube/api/product/drivers/__init__.py @@ -23,7 +23,9 @@ DRIVERS = [ { - "criteria": [lambda prod: True if hasattr(prod, "assets") else False], + "criteria": [ + lambda prod: True if len(getattr(prod, "assets", {})) > 0 else False + ], "driver": StacAssets(), }, {