Skip to content

Commit bf0f4a1

Browse files
committed
Fixed condition for globals
1 parent 2a26409 commit bf0f4a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flamingo_tools/s3_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def check_s3_credentials(
3939
if bucket_name is None:
4040
bucket_name = os.getenv("BUCKET_NAME")
4141
if bucket_name is None:
42-
if BUCKET_NAME in globals():
42+
if "BUCKET_NAME" in globals():
4343
bucket_name = BUCKET_NAME
4444
else:
4545
raise ValueError(
@@ -52,7 +52,7 @@ def check_s3_credentials(
5252
if service_endpoint is None:
5353
service_endpoint = os.getenv("SERVICE_ENDPOINT")
5454
if service_endpoint is None:
55-
if SERVICE_ENDPOINT in globals():
55+
if "SERVICE_ENDPOINT" in globals():
5656
service_endpoint = SERVICE_ENDPOINT
5757
else:
5858
raise ValueError(

0 commit comments

Comments
 (0)