diff --git a/earthaccess/api.py b/earthaccess/api.py index 678698b0..3ce302eb 100644 --- a/earthaccess/api.py +++ b/earthaccess/api.py @@ -373,6 +373,6 @@ def in_us_west_2() -> str: if earthaccess.__store__._running_in_us_west_2() is True: return "You are running in AWS region 'us-west-2'" else: - raise ValueError('Your instance is not running inside the' - ' AWS us-west-2 region.' - ' You will not be able to directly access NASA Earthdata S3 buckets') + raise ValueError("Your instance is not running inside the" + " AWS us-west-2 region." + " You will not be able to directly access NASA Earthdata S3 buckets.") diff --git a/earthaccess/store.py b/earthaccess/store.py index e0a3624c..534896b9 100644 --- a/earthaccess/store.py +++ b/earthaccess/store.py @@ -141,7 +141,7 @@ def _own_s3_credentials(self, links: List[Dict[str, Any]]) -> Union[str, None]: return None def _running_in_us_west_2(self) -> bool: - if (botocore.session.get_session().get_config_variable('region') == 'us-west-2'): + if (botocore.session.get_session().get_config_variable("region") == "us-west-2"): return True else: return False