Skip to content

Commit

Permalink
use double quotes for ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaS11 committed Feb 6, 2024
1 parent f9115fa commit c4135d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions earthaccess/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
2 changes: 1 addition & 1 deletion earthaccess/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4135d7

Please sign in to comment.