diff --git a/keyring/cli.py b/keyring/cli.py index 8b3d712c..17852839 100644 --- a/keyring/cli.py +++ b/keyring/cli.py @@ -137,7 +137,7 @@ def _emit_json(self, credential: credentials.Credential): ) def _emit_plain(self, credential: credentials.Credential): - if credential.username: + if credential.username and not isinstance(credential, credentials.AnonymousCredential): print(credential.username) print(credential.password)