Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-09-12 17:48:05 +0300
committerdartcafe <github@dartcafe.de>2022-09-12 17:48:05 +0300
commit591cc20559d838bf7ca9e2d632e2385907f8d119 (patch)
treeafb8558751ad79b0035dcdebc38a0d0bf4bdfa33
parent771549a5a09e4d425e562d40e8b8cfc66c244ae3 (diff)
Signed-off-by: dartcafe <github@dartcafe.de>
-rw-r--r--lib/Service/SubscriptionService.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php
index 6663c2a9..6f8a3622 100644
--- a/lib/Service/SubscriptionService.php
+++ b/lib/Service/SubscriptionService.php
@@ -23,7 +23,6 @@
namespace OCA\Polls\Service;
-use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
use OCA\Polls\Db\Subscription;
use OCA\Polls\Db\SubscriptionMapper;
use OCA\Polls\Model\Acl;
@@ -66,9 +65,6 @@ class SubscriptionService {
} else {
try {
$this->add($acl->getPollId(), $acl->getUserId());
- } catch (UniqueConstraintViolationException $e) {
- // deprecated NC22
- // catch silently (assume already subscribed)
} catch (Exception $e) {
if ($e->getReason() === Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
// catch silently (assume already subscribed)