Skip to content

Commit

Permalink
narrow catch to nextcloud dbal exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
thrillfall committed Aug 22, 2021
1 parent 029c010 commit 0f6ab73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Core/SubscriptionChange/SubscriptionChangeSaver.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function saveSubscriptionChanges(array $urlsSubscribed, array $urlsUnsubs
$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);
}
Expand Down

0 comments on commit 0f6ab73

Please sign in to comment.