From 3c41844e63a4099f8b7b3692617e8cdee01059d4 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 19 Feb 2019 08:14:17 -0500 Subject: [PATCH] utf-8 decoding --- credentials/imappwd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""