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 ad93735 commit aab85cbCopy full SHA for aab85cb
nipype/interfaces/io.py
@@ -543,7 +543,7 @@ def _fetch_bucket(self, bucket_name):
543
544
# Lean on AWS environment / IAM role authentication and authorization
545
session = boto3.session.Session()
546
-
+
547
s3_resource = session.resource('s3', use_ssl=True)
548
549
# And try fetch the bucket with the name argument
@@ -567,6 +567,8 @@ def _fetch_bucket(self, bucket_name):
567
568
def _get_head_bucket(self, s3_resource, bucket_name):
569
570
+ import botocore
571
572
573
try:
574
s3_resource.meta.client.head_bucket(Bucket=bucket_name)
0 commit comments