Skip to content

Commit

Permalink
Don't rethrow InvalidArgumentException
Browse files Browse the repository at this point in the history
Co-authored-by: Côme Chilliet <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr and come-nc authored Mar 14, 2024
1 parent 47f9656 commit 65f5ae2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/MailQueueHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,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

0 comments on commit 65f5ae2

Please sign in to comment.