Skip to content

Commit

Permalink
fix: Use variable instead of custom name joining for public bucket (#…
Browse files Browse the repository at this point in the history
…1397)

I monkey patched this name for testing and the error was confusing.
  • Loading branch information
sveneberth authored Jan 31, 2025
1 parent 212e7dd commit 9caad83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viur/core/modules/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def get_bucket(dlkey: str) -> google.cloud.storage.bucket.Bucket:
return _public_bucket

raise ValueError(
f"""The bucket 'public-dot-{_PROJECT_ID}' does not exist! Please create it with ACL access."""
f"""The bucket '{PUBLIC_BUCKET_NAME}' does not exist! Please create it with ACL access."""
)

return _private_bucket
Expand Down

0 comments on commit 9caad83

Please sign in to comment.