Skip to content

Commit 6d0ca18

Browse files
authored
Merge pull request #55606 from nextcloud/backport/55581/stable31
[stable31] fix(ooo): don't catch general DB exceptions
2 parents 82072ac + 2d21413 commit 6d0ca18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dav/lib/BackgroundJob/OutOfOfficeEventDispatcherJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function run($argument): void {
4141

4242
try {
4343
$absence = $this->absenceMapper->findById($id);
44-
} catch (DoesNotExistException|\OCP\DB\Exception $e) {
44+
} catch (DoesNotExistException $e) {
4545
$this->logger->error('Failed to dispatch out-of-office event: ' . $e->getMessage(), [
4646
'exception' => $e,
4747
'argument' => $argument,

0 commit comments

Comments
 (0)