New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make fetch_github_token more robust against RuntimeError from keyring #2070
make fetch_github_token more robust against RuntimeError from keyring #2070
Conversation
@verdurin please review? |
This is what I say with the existing code, when I try
|
@boegel - just reporting one step at a time. This is what I see with the new code, but with my Github username still configured:
|
With my Github username unset, the command completes normally, though it also did without the new code. |
@verdurin Are you getting The |
@boegel I haven't installed All I've done is upgrade to the latest Fedora package, which has a dependency on |
@boegel maybe the Fedora maintainer will include |
Probably redundant information, but I see that error when I try |
@verdurin updated to catch It is normal you get the same issue with |
@verdurin any last words on this, seems good to go to me? |
@boegel yes, the unsightly exception is caught now. Good. Thanks. |
Going in, thanks for the feedback @verdurin! |
Other than getting rid of the useless
GithubToken
class, this also wraps thekeyring.get_password
call into atry
/except RuntimeError
, cfr. #2069.