From 0d71dde2156d0fdb0ecd074c2effe44ea2977e80 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 8 Mar 2026 20:15:19 +0000 Subject: [PATCH] misc fixes --- copyparty/mtag.py | 2 +- copyparty/svchub.py | 2 +- copyparty/th_srv.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/copyparty/mtag.py b/copyparty/mtag.py index ad56eec6..c08d253c 100644 --- a/copyparty/mtag.py +++ b/copyparty/mtag.py @@ -667,7 +667,7 @@ class MTag(object): zb = os.getxattr(abspath, xattr) ret[xattr] = zb.decode("utf-8", "replace") except: - self.log("failed to read xattrs from [%s]\n%s", abspath, min_ex(), 3) + self.log("failed to read xattrs from [%s]\n%s" % (abspath, min_ex()), 3) elif "db_xattr_yes" in vf: for xattr in vf["db_xattr_yes"]: if "=" in xattr: diff --git a/copyparty/svchub.py b/copyparty/svchub.py index 1c785982..93b0730b 100644 --- a/copyparty/svchub.py +++ b/copyparty/svchub.py @@ -1248,7 +1248,7 @@ class SvcHub(object): zi = max(1, int(self.args.vc_age)) if zi < 3 and "api.copyparty.eu" in self.args.vc_url: zi = 3 - self.log("vc-age too low for copyparty.eu; will use 3 hours") + self.log("root", "vc-age too low for copyparty.eu; will use 3 hours") self.args.vc_age = zi al.js_utc = "false" if al.localtime else "true" diff --git a/copyparty/th_srv.py b/copyparty/th_srv.py index 9cff845a..94314d44 100644 --- a/copyparty/th_srv.py +++ b/copyparty/th_srv.py @@ -871,7 +871,7 @@ class ThumbSrv(object): try: zs = shlex.join([x.decode("utf-8", "replace") for x in cmd]) except: - zs = "'" + (b"' '".join(cmd2)).decode("utf-8", "replace") + "'" + zs = "'" + (b"' '".join(cmd)).decode("utf-8", "replace") + "'" self.log("%scmd: %s\n%s" % (t, zs, txt), c=c) raise sp.CalledProcessError(ret, (cmd[0], b"...", cmd[-1]))