Skip to content

Commit 551e2bf

Browse files
Update earthaccess/store.py
Co-authored-by: Chuck Daniels <cjdaniels4@gmail.com>
1 parent 1f9ed60 commit 551e2bf

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

earthaccess/store.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,7 @@ def _running_in_us_west_2(self) -> bool:
291291
except Exception:
292292
return False
293293

294-
if resp.status_code == 200 and resp.content == b"us-west-2": # noqa: SIM103
295-
# On AWS, in region us-west-2
296-
return True
297-
return False
294+
return resp.status_code == 200 and resp.content == b"us-west-2"
298295

299296
def set_requests_session(self, url: str, method: str = "get") -> None:
300297
"""Sets up a `requests` session with bearer tokens that are used by CMR.

0 commit comments

Comments
 (0)