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
GithubTokenclass, this also wraps thekeyring.get_passwordcall into atry/except RuntimeError, cfr. #2069.