Merge pull request #272 from harlowja/master

Just ensure pw_val set to empty string (incase its none)
This commit is contained in:
Joshua Harlow 2012-08-30 21:15:24 -07:00
commit c9d9843146
1 changed files with 1 additions and 0 deletions

View File

@ -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: