From 170160659368a0a8c71cf672d5aa33fe1583b09a Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 19 Jan 2024 14:41:53 +1300 Subject: [PATCH] Console warning instead of throw so error reporting isn't triggered --- src/Appwrite/Platform/Workers/Messaging.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Messaging.php b/src/Appwrite/Platform/Workers/Messaging.php index 0aa8e53df5..c146412e94 100644 --- a/src/Appwrite/Platform/Workers/Messaging.php +++ b/src/Appwrite/Platform/Workers/Messaging.php @@ -134,7 +134,8 @@ class Messaging extends Action 'deliveryErrors' => ['No valid recipients found.'] ])); - throw new \Exception('No valid recipients found.'); + Console::warning('No valid recipients found.'); + return; } $fallback = $dbForProject->findOne('providers', [ @@ -148,7 +149,8 @@ class Messaging extends Action 'deliveryErrors' => ['No fallback provider found.'] ])); - throw new \Exception('No fallback provider found.'); + Console::warning('No fallback provider found.'); + return; } /**