Skip to content

Commit

Permalink
Merge pull request #39132 from nextcloud/fix/correct-exceptions-for-SAB
Browse files Browse the repository at this point in the history
fix(CardDAV): catch right exception when checking for federated app classes
  • Loading branch information
blizzz authored Jul 14, 2023
2 parents 2601db2 + 49b6541 commit 27f76dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/CardDAV/UserAddressBooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function getChildren() {
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') {
Expand Down
1 change: 0 additions & 1 deletion lib/private/AppFramework/Utility/SimpleContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public function __construct() {
* @psalm-template S as class-string<T>|string
* @psalm-param S $id
* @psalm-return (S is class-string<T> ? T : mixed)
* @throws QueryException
*/
public function get(string $id) {
return $this->query($id);
Expand Down

0 comments on commit 27f76dc

Please sign in to comment.