Skip to content

Commit 45231f8

Browse files
make sure _bucket_name is a string
1 parent e90238b commit 45231f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/snowflake/connector/s3_storage_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ def __init__(
8282
self.stage_info["location"]
8383
)
8484
)
85-
_bucket_name = str(self.s3location.bucket_name)
86-
if _bucket_name and _bucket_name.lower().startswith("sfc-"):
85+
if str(self.s3location.bucket_name).lower().startswith("sfc-"):
8786
# SNOW-2324060: no s3:GetAccelerateConfiguration and no intention to add either
8887
# for internal stage, thus previously the client got HTTP403 on /accelerate call
8988
logger.debug(

0 commit comments

Comments
 (0)