Skip to content

Commit 5b00ca4

Browse files
authored
Merge pull request #955 from earthlab/apppears
Fixed keyring error
2 parents 84daf5d + 85f5886 commit 5b00ca4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

earthpy/api/auth.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ def get_keyring_credentials(self) -> Optional[Tuple[str, str]]:
7474
if creds_json:
7575
creds = json.loads(creds_json)
7676
return creds['username'], creds['password']
77-
except (json.JSONDecodeError, KeyError):
78-
pass
79-
return None
77+
except:
78+
return None
8079

8180
def set_keyring_credentials(self, username: str, password: str):
8281
"""Store username and password in keyring"""

0 commit comments

Comments
 (0)