Skip to content

Commit

Permalink
Merge pull request #1545 from nextcloud/fix/catch-provider-errors
Browse files Browse the repository at this point in the history
MailQueueHandler: Catch provider errors
  • Loading branch information
marcelklehr authored Feb 8, 2024
2 parents 306662e + 0681102 commit 3877e17
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 @@ -434,7 +434,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 3877e17

Please sign in to comment.