From 1a20f87457e2bb58c0ffcb062d251853b98ca269 Mon Sep 17 00:00:00 2001 From: James Bourbeau Date: Fri, 13 Oct 2023 11:47:10 -0500 Subject: [PATCH] Lint --- earthaccess/__init__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/earthaccess/__init__.py b/earthaccess/__init__.py index 2f8c55d0..221b8cd1 100644 --- a/earthaccess/__init__.py +++ b/earthaccess/__init__.py @@ -1,7 +1,7 @@ +import logging import threading from importlib.metadata import version from typing import Any -import logging from .api import ( collection_query, @@ -63,14 +63,18 @@ def __getattr__(name): # type: ignore try: _auth.login(strategy=strategy) except Exception as e: - logger.debug(f"An error occurred during automatic authentication with {strategy=}: {str(e)}") + logger.debug( + f"An error occurred during automatic authentication with {strategy=}: {str(e)}" + ) continue else: if not _auth.authenticated: continue else: _store = Store(_auth) - logger.debug(f"Automatic authentication with {strategy=} was successful") + logger.debug( + f"Automatic authentication with {strategy=} was successful" + ) break return _auth if name == "__auth__" else _store else: