fix: python code execution misinterpreted warning logs as errors (#2226)

This commit is contained in:
Ryo
2025-09-20 20:02:45 +08:00
committed by GitHub
parent b05004f188
commit 660015ed8a

View File

@ -87,9 +87,6 @@ func (r *runner) pythonCmdRun(_ context.Context, code string, params map[string]
if err != nil {
return nil, fmt.Errorf("failed to run python script err: %s, std err: %s", err.Error(), stderr.String())
}
if stderr.String() != "" {
return nil, fmt.Errorf("failed to run python script err: %s", stderr.String())
}
ret := make(map[string]any)
err = sonic.Unmarshal(stdout.Bytes(), &ret)