File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2929from xcube .constants import LOG
3030from xcube .core .geom import get_dataset_bounds
3131from xcube .core .normalize import DatasetIsNotACubeError
32+ from xcube .core .store import DataStoreError
3233from xcube .core .timecoord import timestamp_to_iso_string
3334from xcube .util .assertions import assert_instance
3435from xcube .util .cmaps import get_cmaps
4041from xcube .webapi .controllers .tiles import get_dataset_tile_url
4142from xcube .webapi .controllers .tiles import get_tile_source_options
4243from xcube .webapi .errors import ServiceBadRequestError
43- import zarr
44+
4445
4546def get_datasets (ctx : ServiceContext ,
4647 details : bool = False ,
@@ -138,7 +139,7 @@ def get_dataset(ctx: ServiceContext,
138139
139140 try :
140141 ml_ds = ctx .get_ml_dataset (ds_id )
141- except ValueError as e :
142+ except ( ValueError , DataStoreError ) as e :
142143 raise DatasetIsNotACubeError (f'could not open dataset: { e } ' ) from e
143144
144145 grid_mapping = ml_ds .grid_mapping
You can’t perform that action at this time.
0 commit comments