Prevent "BAD_NAME" exception from failing entire profile page.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-01-20 01:54:03 -06:00
parent 8b466ce82e
commit b6656a35f1
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 9 additions and 4 deletions

View File

@ -117,11 +117,16 @@ abstract class AbstractAdapter
}
$program_name = $this->getProgramName($station);
$process = $this->supervisor->getProcess($program_name);
return ($process instanceof Process)
? $process->isRunning()
: false;
try {
$process = $this->supervisor->getProcess($program_name);
return ($process instanceof Process)
? $process->isRunning()
: false;
} catch (Fault\BadNameException $e) {
return false;
}
}
/**