Skip to content

Commit

Permalink
fix: format api.py logging statemtn
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer Tran committed May 16, 2024
1 parent 35cde07 commit 928e07a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions earthaccess/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ def search_datasets(count: int = -1, **kwargs: Any) -> List[DataCollection]:
```
"""
if not validate.valid_dataset_parameters(**kwargs):
logger.warn(
"A valid set of parameters is needed to search for datasets on CMR"
)
logger.warn("A valid set of parameters is needed to search for datasets on CMR")
return []
if earthaccess.__auth__.authenticated:
query = DataCollections(auth=earthaccess.__auth__).parameters(**kwargs)
Expand Down Expand Up @@ -203,7 +201,9 @@ def download(
try:
results = earthaccess.__store__.get(granules, local_path, provider, threads)
except AttributeError as err:
logger.error(f"{err}: You must call earthaccess.login() before you can download data")
logger.error(
f"{err}: You must call earthaccess.login() before you can download data"
)
return []
return results

Expand Down

0 comments on commit 928e07a

Please sign in to comment.