From e53ecc76daebaa63fe02c7b406605e4c473d899c Mon Sep 17 00:00:00 2001 From: John Hernandez <129467592+H3rnand3zzz@users.noreply.github.com> Date: Mon, 23 Oct 2023 12:02:17 +0200 Subject: [PATCH] Fix TypeError in syscmd.py plugin Fix `TypeError: can only concatenate str (not "bytes") to str` --- stable/syscmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stable/syscmd.py b/stable/syscmd.py index 7db3541..949de81 100644 --- a/stable/syscmd.py +++ b/stable/syscmd.py @@ -48,7 +48,7 @@ def _handle_send(command=None): result = _get_result(command) newline = prof.settings_boolean_get("system", "newline", True) if len(result.splitlines()) > 1 and newline: - prof.send_line(u'\u000A' + result) + prof.send_line(u'\u000A' + result.decode('utf-8', errors='ignore')) else: prof.send_line(result)