Skip to content

Commit f9115fa

Browse files
authored
Change boto3 region check to use botocore
1 parent 7c5e027 commit f9115fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

earthaccess/store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
1010
from uuid import uuid4
1111

12-
import boto3
12+
import botocore.session
1313
import fsspec
1414
import requests
1515
import s3fs
@@ -141,7 +141,7 @@ def _own_s3_credentials(self, links: List[Dict[str, Any]]) -> Union[str, None]:
141141
return None
142142

143143
def _running_in_us_west_2(self) -> bool:
144-
if (boto3.client('s3').meta.region_name == 'us-west-2'):
144+
if (botocore.session.get_session().get_config_variable('region') == 'us-west-2'):
145145
return True
146146
else:
147147
return False

0 commit comments

Comments
 (0)