Merge pull request #272 from harlowja/master
Just ensure pw_val set to empty string (incase its none)
This commit is contained in:
commit
c9d9843146
|
@ -61,6 +61,7 @@ class KeyringProxy(object):
|
|||
pw_val = self.ring.get_password(name, PW_USER)
|
||||
if pw_val:
|
||||
return (True, pw_val)
|
||||
pw_val = ''
|
||||
if self.enable_prompt and prompt:
|
||||
pw_val = InputPassword().get_password(name, prompt)
|
||||
if self.random_on_empty and len(pw_val) == 0:
|
||||
|
|
Loading…
Reference in New Issue