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

Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
Anna Larch 2025-10-06 17:29:41 +02:00 committed by backportbot[bot]
parent c609dd20b4
commit 2d21413367

View file

@ -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,