Skip to content

Commit

Permalink
Add condition to ignore empty bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslinhares committed Dec 6, 2023
1 parent e6d4844 commit 9b9ac19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions temba/archives/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def get_download_link(self):
if self.url:
s3_client = s3.client()
bucket, key = self.get_storage_location()
if bucket == "":
return ""
s3_params = {
"Bucket": bucket,
"Key": key,
Expand Down

0 comments on commit 9b9ac19

Please sign in to comment.