From 83b4e9e80959cfd5c6d07f325638f24fffa9b4e9 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 24 Sep 2024 10:20:07 +0400 Subject: [PATCH] what --- config/emacs/.offlineimap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)