79722279

Date: 2025-08-01 09:07:56
Score: 0.5
Natty:
Report link

Modify to capture errors:

$process = new Process(['python3', base_path('login_script.py')]);
$process->run();

if (!$process->isSuccessful()) {
    throw new ProcessFailedException($process);
}

return $process->getOutput() . $process->getErrorOutput();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Rajeev Singh