Skip to content

Commit

Permalink
Merge pull request #1561 from nextcloud/backport/1545/stable27
Browse files Browse the repository at this point in the history
[stable27] MailQueueHandler: Catch provider errors
  • Loading branch information
solracsf authored Feb 21, 2024
2 parents c90bb0b + f488796 commit 0208288
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MailQueueHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ 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->logger->error('Error while parsing activity event', ['exception' => $e]);
}
}
$this->activityManager->setFormattingObject('', 0);
Expand Down

0 comments on commit 0208288

Please sign in to comment.