Browse Source

utf-8 decoding

tags/v3.1
Luke Smith 5 years ago
parent
commit
3c41844e63
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      credentials/imappwd.py

+ 1
- 1
credentials/imappwd.py 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 ""

Loading…
Cancel
Save