We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1471602 commit 70e88b3Copy full SHA for 70e88b3
src/genesys/generate.py
@@ -51,10 +51,13 @@ def main(config: GenerateConfig):
51
52
# Initialize components
53
log("[cyan] Configuring output path and gcp bucket...[/]")
54
+if config.gcp_bucket is not None:
55
+ gcp_credentials = os.environ.get("GCP_CREDENTIALS_BASE64")
56
+ assert gcp_credentials is not None, "the GCP_CREDENTIALS_BASE64 environment variable is not set"
57
if not os.path.exists(config.path_output):
58
os.makedirs(config.path_output)
59
gcp_bucket = (
- GcpBucket(config.gcp_bucket, os.environ.get("GCP_CREDENTIALS_BASE64"))
60
+ GcpBucket(config.gcp_bucket, gcp_credentials)
61
if config.gcp_bucket is not None
62
else None
63
)
0 commit comments