We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a26409 commit bf0f4a1Copy full SHA for bf0f4a1
flamingo_tools/s3_utils.py
@@ -39,7 +39,7 @@ def check_s3_credentials(
39
if bucket_name is None:
40
bucket_name = os.getenv("BUCKET_NAME")
41
42
- if BUCKET_NAME in globals():
+ if "BUCKET_NAME" in globals():
43
bucket_name = BUCKET_NAME
44
else:
45
raise ValueError(
@@ -52,7 +52,7 @@ def check_s3_credentials(
52
if service_endpoint is None:
53
service_endpoint = os.getenv("SERVICE_ENDPOINT")
54
55
- if SERVICE_ENDPOINT in globals():
+ if "SERVICE_ENDPOINT" in globals():
56
service_endpoint = SERVICE_ENDPOINT
57
58
0 commit comments