From a4dfa481534eb6bb3b57c3e1cb13f2db2fbb49d6 Mon Sep 17 00:00:00 2001 From: Jennifer Tran Date: Wed, 15 May 2024 21:01:14 -0700 Subject: [PATCH] fix: format api.py logging statemtn --- earthaccess/api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/earthaccess/api.py b/earthaccess/api.py index 97835fa3..5e82fd60 100644 --- a/earthaccess/api.py +++ b/earthaccess/api.py @@ -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) @@ -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