Skip to content

Commit

Permalink
Replace deprecated calls to logger.warn()
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Jul 6, 2024
1 parent 7908008 commit 5edff3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion earthaccess/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ 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.warning(
"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
2 changes: 1 addition & 1 deletion earthaccess/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __init__(self, auth: Any, pre_authorize: bool = False) -> None:
self.set_requests_session(url)

else:
logger.warn("The current session is not authenticated with NASA")
logger.warning("The current session is not authenticated with NASA")
self.auth = None
self.in_region = self._running_in_us_west_2()

Expand Down

0 comments on commit 5edff3a

Please sign in to comment.