diff options
author | Luke Smith <luke@lukesmith.xyz> | 2019-02-19 08:14:17 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2019-02-19 08:14:17 -0500 |
commit | 3c41844e63a4099f8b7b3692617e8cdee01059d4 (patch) | |
tree | f4917e5f095a70ada198389c57fe899c032f5624 /credentials | |
parent | 6d5f14112e2ed8d4050e253a9e82e44b9bc195b3 (diff) |
utf-8 decoding
Diffstat (limited to 'credentials')
-rwxr-xr-x | credentials/imappwd.py | 2 |
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 "" |