Skip to content

Commit

Permalink
Add default to env var to fail nicely
Browse files Browse the repository at this point in the history
  • Loading branch information
BielStela committed May 19, 2023
1 parent fe056a5 commit 43cc5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/h3_data_importer/cog_to_contextual_layer_linker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def check_file_exists_in_s3(cog_name: str):
)
s3 = aws_session.client("s3")
# TODO: get bucket name from env? hardcoded? Alex help here 🙏
bucket = os.getenv("S3_BUCKET_NAME")
bucket = os.getenv("S3_BUCKET_NAME", "")
try:
s3.head_object(Bucket=bucket, Key=str(Path(os.getenv("S3_COG_PATH")) / cog_name))
except ClientError as e:
Expand Down

0 comments on commit 43cc5d5

Please sign in to comment.