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

This commit is contained in:
Mikhail Titov
2026-05-09 09:44:52 -05:00
parent 4ed4eaf8e8
commit 23d0963c2d

View File

@@ -320,9 +320,9 @@ def _on_say_command(word, word_eol, userdata):
return 0
try:
python = _cstr(word_eol[1])
python = __decode(_cstr(word_eol[1]))
except Exception:
python = b''
python = ''
if not python:
return 1