Skip to content

Commit

Permalink
fix: capture OSError when trying to open path
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato committed Dec 18, 2024
1 parent 515dffe commit 8845537
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eodag_cube/api/product/_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,7 @@ def to_xarray(

except (
UnsupportedDatasetAddressScheme,
FileNotFoundError,
IsADirectoryError,
OSError,
DatasetCreationError,
) as e:
logger.debug(f"Cannot open {self} {asset_key if asset_key else ''}: {e}")
Expand Down

0 comments on commit 8845537

Please sign in to comment.