Skip to content

Commit

Permalink
Add condition to ignore empty bucket (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslinhares authored Dec 14, 2023
1 parent e6d4844 commit a69f3f8
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 a69f3f8

Please sign in to comment.