diff --git a/config/emacs/.offlineimap.py b/config/emacs/.offlineimap.py index a4e6e542..0557d433 100644 --- a/config/emacs/.offlineimap.py +++ b/config/emacs/.offlineimap.py @@ -43,4 +43,6 @@ def get_client_token(account): def get_client_refresh_token(account): cmd = check_output("pass " + account, shell=True) - return re.search("client_refresh_token: (.*)", cmd, flags=0).group(1) + output = re.search(rb"client_refresh_token: (.*)", cmd, flags=0).group(1) + + return str.encode(output)