From 5f9a78899bc29ae39fe11ec04b6ee920986ef469 Mon Sep 17 00:00:00 2001 From: Elsa Culler Date: Thu, 29 May 2025 17:47:55 -0600 Subject: [PATCH] Skip keyring if not installed --- earthpy/api/auth.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/earthpy/api/auth.py b/earthpy/api/auth.py index 2bfa32bc..8da9c2e7 100644 --- a/earthpy/api/auth.py +++ b/earthpy/api/auth.py @@ -74,9 +74,8 @@ def get_keyring_credentials(self) -> Optional[Tuple[str, str]]: if creds_json: creds = json.loads(creds_json) return creds['username'], creds['password'] - except (json.JSONDecodeError, KeyError): - pass - return None + except: + return None def set_keyring_credentials(self, username: str, password: str): """Store username and password in keyring"""