Prevent "BAD_NAME" exception from failing entire profile page.
This commit is contained in:
parent
8b466ce82e
commit
b6656a35f1
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue