From 57100fe78e2893d8706ebd0d23994a03b033e95c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 20 Feb 2026 08:10:25 +0100 Subject: [PATCH] fix(notifications): Update notifier exception handling Signed-off-by: Joas Schilling --- apps/dav/lib/CardDAV/Notification/Notifier.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/dav/lib/CardDAV/Notification/Notifier.php b/apps/dav/lib/CardDAV/Notification/Notifier.php index 7620bd06cd9..268d0590b46 100644 --- a/apps/dav/lib/CardDAV/Notification/Notifier.php +++ b/apps/dav/lib/CardDAV/Notification/Notifier.php @@ -8,7 +8,6 @@ declare(strict_types=1); */ namespace OCA\DAV\CardDAV\Notification; -use InvalidArgumentException; use OCA\DAV\AppInfo\Application; use OCP\IL10N; use OCP\L10N\IFactory; @@ -42,7 +41,7 @@ class Notifier implements INotifier { */ public function prepare(INotification $notification, string $languageCode): INotification { if ($notification->getApp() !== Application::APP_ID) { - throw new InvalidArgumentException(); + throw new UnknownNotificationException(); } $l = $this->l10nFactory->get(Application::APP_ID, $languageCode);