utf-8 decoding
This commit is contained in:
parent
6d5f14112e
commit
3c41844e63
@ -6,6 +6,6 @@ def mailpasswd(acct):
|
|||||||
path = "%s/.config/mutt/credentials/%s.gpg" % (home,acct)
|
path = "%s/.config/mutt/credentials/%s.gpg" % (home,acct)
|
||||||
args = ["gpg2", "--use-agent", "--quiet", "--batch", "-d", path]
|
args = ["gpg2", "--use-agent", "--quiet", "--batch", "-d", path]
|
||||||
try:
|
try:
|
||||||
return subprocess.check_output(args).strip()
|
return subprocess.check_output(args).strip().decode('UTF-8')
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
Reference in New Issue
Block a user