Merge pull request #27 from H3rnand3zzz/patch-1

Fix TypeError in syscmd.py plugin
This commit is contained in:
Michael Vetter
2023-10-23 12:11:17 +02:00
committed by GitHub

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)