Fix TypeError in syscmd.py plugin

Fix `TypeError: can only concatenate str (not "bytes") to str`
This commit is contained in:
John Hernandez
2023-10-23 12:02:17 +02:00
committed by GitHub
parent 6559d236d1
commit e53ecc76da

View File

@@ -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)