Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Don't rethrow InvalidArgumentException
Co-authored-by: Côme Chilliet <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
2 people authored and backportbot[bot] committed Mar 18, 2024
commit 971d53b416b39ffa635a4bcb31333a595a9904cb
6 changes: 2 additions & 4 deletions lib/MailQueueHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,11 +466,9 @@ protected function parseEvent($lang, IEvent $event) {
foreach ($this->activityManager->getProviders() as $provider) {
try {
$event = $provider->parse($lang, $event);
} catch (\InvalidArgumentException $e) {
/* Ignore */
} catch (\Throwable $e) {
if ($e instanceof \InvalidArgumentException) {
// \InvalidArgumentException is part of the activity API, so we let it through
throw $e;
}
$this->logger->error('Error while parsing activity event', ['exception' => $e]);
}
}
Expand Down