Skip to content

Commit 25ecc8f

Browse files
authored
Merge pull request #1413 from snosratiershad/hotfix/allow_blank_secret_key
fix: allow blank secret key
2 parents 9f4cbe6 + 1084282 commit 25ecc8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

S3/Config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ def __init__(self, configfile = None, access_key=None, secret_key=None, access_t
272272
self.aws_credential_file()
273273

274274
# override these if passed on the command-line
275-
if access_key and secret_key:
275+
# Allow blank secret_key
276+
if access_key and secret_key is not None:
276277
self.access_key = access_key
277278
self.secret_key = secret_key
278279
if access_token:

0 commit comments

Comments
 (0)