Skip to content

Commit

Permalink
do not silent issues in earthaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Feb 11, 2024
1 parent 291bbf7 commit 68b0568
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions titiler/cmr/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from rio_tiler.mosaic import mosaic_reader
from rio_tiler.types import BBox

from titiler.cmr.logger import logger
from titiler.cmr.settings import AuthSettings, CacheSettings, RetrySettings
from titiler.cmr.utils import retry

Expand Down Expand Up @@ -164,16 +163,12 @@ def get_assets(
**kwargs: Any,
) -> List[Asset]:
"""Find assets."""
try:
xmin, ymin, xmax, ymax = (round(n, 8) for n in [xmin, ymin, xmax, ymax])
results = earthaccess.search_data(
bounding_box=(xmin, ymin, xmax, ymax),
count=limit,
**kwargs,
)
except RuntimeError as e:
logger.debug(repr(e))
return []
xmin, ymin, xmax, ymax = (round(n, 8) for n in [xmin, ymin, xmax, ymax])
results = earthaccess.search_data(
bounding_box=(xmin, ymin, xmax, ymax),
count=limit,
**kwargs,
)

assets: List[Asset] = []
for r in results:
Expand Down

0 comments on commit 68b0568

Please sign in to comment.