From 710d08ba4b3a07d3a8fe82b66a4fbf8a75edd781 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Fri, 2 Feb 2024 11:41:38 +0100 Subject: [PATCH 1/2] MailQueueHandler: Catch provider errors Signed-off-by: Marcel Klehr --- lib/MailQueueHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MailQueueHandler.php b/lib/MailQueueHandler.php index e2139ddaf..9c9d5fa98 100644 --- a/lib/MailQueueHandler.php +++ b/lib/MailQueueHandler.php @@ -466,7 +466,7 @@ protected function parseEvent($lang, IEvent $event) { foreach ($this->activityManager->getProviders() as $provider) { try { $event = $provider->parse($lang, $event); - } catch (\InvalidArgumentException $e) { + } catch (\Throwable $e) { } } $this->activityManager->setFormattingObject('', 0); From f488796fa814a8374a93787284a79c4adbd2fb8a Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 5 Feb 2024 13:21:26 +0100 Subject: [PATCH 2/2] MailQueueHandler: Log error during parseEvent Signed-off-by: Marcel Klehr --- lib/MailQueueHandler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MailQueueHandler.php b/lib/MailQueueHandler.php index 9c9d5fa98..b820b550d 100644 --- a/lib/MailQueueHandler.php +++ b/lib/MailQueueHandler.php @@ -467,6 +467,7 @@ protected function parseEvent($lang, IEvent $event) { try { $event = $provider->parse($lang, $event); } catch (\Throwable $e) { + $this->logger->error('Error while parsing activity event', ['exception' => $e]); } } $this->activityManager->setFormattingObject('', 0);