Skip to content

Commit

Permalink
fix jaraco#655: print plain username if not Anonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
daaniam committed Sep 17, 2024
1 parent 0041050 commit 3f5082c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyring/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3f5082c

Please sign in to comment.