From cd2ef9123c710fb93936d360960baf10981c12de Mon Sep 17 00:00:00 2001 From: Jonathan Treffler Date: Sun, 18 Aug 2024 17:35:45 +0200 Subject: [PATCH] fix notify error handling --- lib/Listener/CalendarListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Listener/CalendarListener.php b/lib/Listener/CalendarListener.php index f8b72c0..b5db97d 100644 --- a/lib/Listener/CalendarListener.php +++ b/lib/Listener/CalendarListener.php @@ -63,7 +63,7 @@ class CalendarListener implements IEventListener { $transport = $this->transportManager->getTransport($subscription->getTransport()); try { $transport->notify($subscription->getUserId(), $collectionName, $subscription->getId()); - } catch (Error $e) { + } catch (\Exception $e) { $this->logger->error("transport " . $subscription->getTransport() . " failed to deliver notification to subscription " . $subscription->getId()); } }