From acaa830e21394fb0d7b0b9378d0c38a199ba4b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Mon, 6 May 2024 21:55:31 +0800 Subject: [PATCH] ... --- plugins/exec/PyStand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/exec/PyStand.cpp b/plugins/exec/PyStand.cpp index c3c62c73..8c9e992b 100644 --- a/plugins/exec/PyStand.cpp +++ b/plugins/exec/PyStand.cpp @@ -274,7 +274,7 @@ const auto init_script = L" sys.stderr = fp\n" L" attached = True\n" L"except Exception as e:\n" - L" fp = open(os.devnull, 'w', encoding='utf8')\n" + L" fp = open(os.devnull, 'w', errors='ignore')\n" L" sys.stdout = fp\n" L" sys.stderr = fp\n" L" attached = False\n"