mirror of
https://github.com/thrillfall/nextcloud-gpodder.git
synced 2024-12-25 15:22:34 +01:00
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