From 65809caab68764519a0deefd34f87fb36183984c Mon Sep 17 00:00:00 2001 From: Junaid Bhura Date: Fri, 16 Dec 2022 09:57:12 +1100 Subject: [PATCH] wp ai remove exception in favor of empty string --- plugins/WpAiPro.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/WpAiPro.php b/plugins/WpAiPro.php index 755636f..f52b909 100644 --- a/plugins/WpAiPro.php +++ b/plugins/WpAiPro.php @@ -7,7 +7,6 @@ namespace Junaidbhura\Composer\WPProPlugins\Plugins; -use Exception; use Junaidbhura\Composer\WPProPlugins\Http; /** @@ -101,9 +100,9 @@ public function getDownloadUrl() { ) ), true ); if ( ! empty( $response['download_link'] ) ) { return $response['download_link']; - } else { - throw new Exception( 'Invalid download link for ' . $name ); } + + return ''; } }