Skip to content

Commit aab85cb

Browse files
committed
import botocore
1 parent ad93735 commit aab85cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/interfaces/io.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def _fetch_bucket(self, bucket_name):
543543

544544
# Lean on AWS environment / IAM role authentication and authorization
545545
session = boto3.session.Session()
546-
546+
547547
s3_resource = session.resource('s3', use_ssl=True)
548548

549549
# And try fetch the bucket with the name argument
@@ -567,6 +567,8 @@ def _fetch_bucket(self, bucket_name):
567567

568568
def _get_head_bucket(self, s3_resource, bucket_name):
569569

570+
import botocore
571+
570572
# And try fetch the bucket with the name argument
571573
try:
572574
s3_resource.meta.client.head_bucket(Bucket=bucket_name)

0 commit comments

Comments
 (0)