fix(python): decode the console input to str in _on_say_command

This commit is contained in:
Mikhail Titov
2026-05-10 23:57:43 -05:00
parent 4ed4eaf8e8
commit 23d0963c2d
+2 -2
View File
@@ -320,9 +320,9 @@ def _on_say_command(word, word_eol, userdata):
return 0 return 0
try: try:
python = _cstr(word_eol[1]) python = __decode(_cstr(word_eol[1]))
except Exception: except Exception:
python = b'' python = ''
if not python: if not python:
return 1 return 1