aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2023-07-04 11:24:24 +0200
committerAnna Larch <anna@nextcloud.com>2023-07-06 13:07:14 +0200
commit558e386e467fc26ff6c3db25741bdc734a883525 (patch)
tree897dbb65c93a4a6e587afb0f5b616d2336d5df15 /apps/dav/lib
parent3a504916cf5a7adef23b2839502310e62d049ce0 (diff)
downloadnextcloud-server-558e386e467fc26ff6c3db25741bdc734a883525.tar.gz
nextcloud-server-558e386e467fc26ff6c3db25741bdc734a883525.zip
fix(CardDAV): catch right exception when checking for federated app classes
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/CardDAV/UserAddressBooks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CardDAV/UserAddressBooks.php b/apps/dav/lib/CardDAV/UserAddressBooks.php
index 938575bd1a7..d42af7790f8 100644
--- a/apps/dav/lib/CardDAV/UserAddressBooks.php
+++ b/apps/dav/lib/CardDAV/UserAddressBooks.php
@@ -107,7 +107,7 @@ class UserAddressBooks extends \Sabre\CardDAV\AddressBookHome {
try {
$trustedServers = \OC::$server->get(TrustedServers::class);
$request = \OC::$server->get(IRequest::class);
- } catch (NotFoundExceptionInterface | ContainerExceptionInterface $e) {
+ } catch (QueryException | NotFoundExceptionInterface | ContainerExceptionInterface $e) {
// nothing to do, the request / trusted servers don't exist
}
if ($addressBook['principaluri'] === 'principals/system/system') {