Skip to content

Commit

Permalink
Wrong error in CI STAC with "NoSuchBucket"
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Jan 4, 2024
1 parent 3aa1b6a commit d76e3af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CI/SCRIPTS_WEEKLY/test_stac_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _test_core(
)[def_band]
assert band.shape == (1, 100, 100)
except ClientError as ex:
if ex.response["Error"]["Code"] in ["NoSuchKey", "404"]:
if ex.response["Error"]["Code"] in ["NoSuchBucket", "404"]:
LOGGER.warning(
f"Impossible to access the bands for {prod.condensed_name}."
)
Expand Down

0 comments on commit d76e3af

Please sign in to comment.