classes/Config.php
private function validateOptions()
    {
        /*
        We don't translate these exceptions because they usually occur before Slim can catch them
        so they will go to the logs.
         */
        if (!is_file($this->youtubedl)) {
            throw new Exception("Can't find youtube-dl at ".$this->youtubedl);
        } elseif (!Video::checkCommand([$this->python, '--version'])) {
            throw new Exception("Can't find Python at ".$this->python);
        }
    }
private function validateOptions()
    {
        /*
        We don't translate these exceptions because they usually occur before Slim can catch them
        so they will go to the logs.
         */
        if (!is_file($this->youtubedl)) {
            throw new Exception("Can't find youtube-dl at ".$this->youtubedl);
        } elseif (!Video::checkCommand([$this->python, '--version'])) {
            throw new Exception("Can't find Python at ".$this->python);
        }
    }
private function validateOptions ( ) { /*
        We don't translate these exceptions because they usually occur before Slim can catch them
        so they will go to the logs.
         */ if ( ! is_file ( $ this -> youtubedl ) ) { throw new Exception ( "Can't find youtube-dl at " . $ this -> youtubedl ) ; } elseif ( ! Video :: checkCommand ( [ $ this -> python , '--version' ] ) ) { throw new Exception ( "Can't find Python at " . $ this -> python ) ; } }
Throw an exception if some of the options are invalid.

@throws Exception If youtube-dl is missing
@throws Exception If Python is missing

@return void
Throw an exception if some of the options are invalid .