From 48c35ad6c9fff5b6c1f04baf87a95d20e7a04a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20=D0=94=D0=B7=D1=8E=D0=B1=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Thu, 23 Sep 2021 16:51:11 +0300 Subject: [PATCH] fixed sync login encoding error --- pym/client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/client/client.py b/pym/client/client.py index 0ad6007..ff97df4 100644 --- a/pym/client/client.py +++ b/pym/client/client.py @@ -1335,7 +1335,7 @@ class Client(commandServer, encrypt, Desktop): if not self.syncUserNew(ps, uid, gid, homeDir, "login", remoteProfile, host=host, rsyncopts=remoteOpts): - error_output = ps.output + error_output = ps.output.decode("UTF-8") if remoteOpts and re.search(r"(on remote machine.*unknown option|" "unknown compress name:)", error_output): @@ -1373,7 +1373,7 @@ class Client(commandServer, encrypt, Desktop): f.write("SUCCESS") if not self.syncUserNew(ps, uid, gid, homeDir, "logout", remoteProfile, host=host, skipList=skipList): - self.printERROR(ps.output) + self.printERROR(ps.output.decode("UTF-8")) self.printERROR(_("Failed to execute rsync")) return False return True