fix(ooo): don't catch general DB exceptions

Signed-off-by: Anna Larch <anna@nextcloud.com>
pull/55607/head
Anna Larch 2025-10-06 17:29:41 +07:00 committed by backportbot[bot]
parent f2051caaee
commit 3472beba33
1 changed files with 1 additions and 1 deletions

@ -41,7 +41,7 @@ class OutOfOfficeEventDispatcherJob extends QueuedJob {
try {
$absence = $this->absenceMapper->findById($id);
} catch (DoesNotExistException|\OCP\DB\Exception $e) {
} catch (DoesNotExistException $e) {
$this->logger->error('Failed to dispatch out-of-office event: ' . $e->getMessage(), [
'exception' => $e,
'argument' => $argument,