narrow catch to nextcloud dbal exceptions
This commit is contained in:
parent
029c010e2f
commit
0f6ab73cf2
@ -40,7 +40,7 @@ class SubscriptionChangeSaver
|
||||
$this->subscriptionChangeWriter->create($subscriptionChangeEntity);
|
||||
} catch (UniqueConstraintViolationException $uniqueConstraintViolationException) {
|
||||
$this->updateSubscription($subscriptionChangeEntity, $userId);
|
||||
} catch (\Exception $exception) {
|
||||
} catch (Exception $exception) {
|
||||
if ($exception->getReason() === Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
|
||||
$this->updateSubscription($subscriptionChangeEntity, $userId);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user