Skip to content

Commit

Permalink
fix boto error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sclaw committed Oct 31, 2024
1 parent ab0e5e4 commit 7d5c8eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external_caller.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
import warnings

from botocore.exceptions import NoSuchKey
from botocore.exceptions import ClientError

from ras_stac.ras1d.converter import process_in_place_s3
from ras_stac.ras1d.utils.s3_utils import str_from_s3
Expand All @@ -21,7 +21,7 @@ def owp_wrapper(in_prefix: str, out_prefix: str) -> dict:
try:
crs_dict = json.loads(str_from_s3(crs_path))
crs = crs_dict["best_crs"]
except NoSuchKey:
except ClientError:
crs = None
return process_in_place_s3(in_prefix, crs, out_prefix)

Expand Down

0 comments on commit 7d5c8eb

Please sign in to comment.