Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into dev
  • Loading branch information
nicolasK committed Feb 22, 2024
2 parents 63e3560 + d0ef082 commit ff4bc9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions earthdaily/earthdatastore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ def _get_client(config=None, presign_urls=True):
A PySTAC client for interacting with the Earth Data Store STAC API.
"""

if isinstance(config, tuple): # token
token, eds_url = config
logging.log(level=logging.INFO, msg="Using token to reauth")
else:
if isinstance(config, dict):
config = config.get
elif isinstance(config,str) and config.endswith('.json'):
elif isinstance(config, str) and config.endswith(".json"):
config = json.load(open(config, "rb")).get
token, eds_url = _get_token(config, presign_urls)

Expand Down

0 comments on commit ff4bc9a

Please sign in to comment.