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 Anna
parent cb1a6f79e7
commit d4c9e09c5f

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,