utf-8 decoding

This commit is contained in:
Luke Smith 2019-02-19 08:14:17 -05:00
parent 6d5f14112e
commit 3c41844e63
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -6,6 +6,6 @@ def mailpasswd(acct):
path = "%s/.config/mutt/credentials/%s.gpg" % (home,acct)
args = ["gpg2", "--use-agent", "--quiet", "--batch", "-d", path]
try:
return subprocess.check_output(args).strip()
return subprocess.check_output(args).strip().decode('UTF-8')
except subprocess.CalledProcessError:
return ""