Skip to content

Commit

Permalink
null check
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Jan 12, 2024
1 parent 9432ba3 commit 7e7fd86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def upload_file_to_s3(bucket: str, filename: str):
access_key = os.getenv('AWS_ACCESS_KEY_ID')
secret_key = os.getenv('AWS_SECRET_ACCESS_KEY')
region = os.getenv('AWS_DEFAULT_REGION')
secure = s3_url.startswith('https')
secure = s3_url and s3_url.startswith('https')
# Set up the S3 client
s3_client = boto3.client('s3',
endpoint_url=s3_url,
Expand Down

0 comments on commit 7e7fd86

Please sign in to comment.