mirror of
https://github.com/thrillfall/nextcloud-gpodder.git
synced 2024-12-27 08:14:42 +01:00
narrow catch to nextcloud dbal exceptions
This commit is contained in:
parent
06f1a9a978
commit
83c18ad623
@ -70,7 +70,7 @@ class EpisodeActionController extends Controller {
|
||||
return $this->episodeActionWriter->save($episodeActionEntity);
|
||||
} catch (UniqueConstraintViolationException $uniqueConstraintViolationException) {
|
||||
return $this->updateEpisodeAction($episodeAction, $episodeActionEntity);
|
||||
} catch (\Exception $exception) {
|
||||
} catch (Exception $exception) {
|
||||
if ($exception->getReason() === Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
|
||||
return $this->updateEpisodeAction($episodeAction, $episodeActionEntity);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user