From cb7dad19dc39c88c2b2dac04dfd6a82a6720b4b5 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Tue, 18 Oct 2016 10:15:09 +0200 Subject: [PATCH] Throw exception is Python is missing --- classes/VideoDownload.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/VideoDownload.php b/classes/VideoDownload.php index 6da3d5b..b48c53d 100644 --- a/classes/VideoDownload.php +++ b/classes/VideoDownload.php @@ -39,6 +39,8 @@ class VideoDownload $this->procBuilder = new ProcessBuilder(); if (!is_file($this->config->youtubedl)) { throw new \Exception("Can't find youtube-dl at ".$this->config->youtubedl); + } elseif (!is_file($this->config->python)) { + throw new \Exception("Can't find Python at ".$this->config->python); } $this->procBuilder->setPrefix( array_merge(