Merge pull request #55581 from nextcloud/fix/noid/dont-catch-general-db-errors

fix(ooo): don't catch general DB exceptions
This commit is contained in:
Anna 2025-10-07 13:36:55 +02:00 committed by GitHub
commit 87c90f9678
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,