Skip to content

Commit

Permalink
Hotfix: update s3 bucket creation/getting
Browse files Browse the repository at this point in the history
  • Loading branch information
printer83mph committed Apr 14, 2024
1 parent 5efb570 commit 26cb0f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/util/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
aws_secret_access_key=os.getenv("AWS_SECRET_ACCESS_KEY"),
)

assets_bucket = s3.create_bucket(Bucket="griddle-assets")
try:
assets_bucket = s3.create_bucket(Bucket="griddle-assets")
except:
assets_bucket = s3.Bucket("griddle-assets")

0 comments on commit 26cb0f8

Please sign in to comment.