summaryrefslogtreecommitdiff
path: root/credentials/imappwd.py
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-02-19 08:14:17 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-02-19 08:14:17 -0500
commit3c41844e63a4099f8b7b3692617e8cdee01059d4 (patch)
treef4917e5f095a70ada198389c57fe899c032f5624 /credentials/imappwd.py
parent6d5f14112e2ed8d4050e253a9e82e44b9bc195b3 (diff)
utf-8 decoding
Diffstat (limited to 'credentials/imappwd.py')
-rwxr-xr-xcredentials/imappwd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/credentials/imappwd.py b/credentials/imappwd.py
index 0a74804..03611dd 100755
--- a/credentials/imappwd.py
+++ b/credentials/imappwd.py
@@ -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 ""