Skip to content

Commit

Permalink
utf-8 decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSmithxyz committed Feb 19, 2019
1 parent 6d5f141 commit 3c41844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credentials/imappwd.py
Expand Up @@ -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 ""

0 comments on commit 3c41844

Please sign in to comment.