From e321efeaac394b76079523e7ab7df4167587100d Mon Sep 17 00:00:00 2001 From: Micheal Date: Mon, 21 Sep 2020 12:09:21 +0200 Subject: [PATCH] Catch all Exceptions related to Db not exist --- Core/H5POptions.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Core/H5POptions.php b/Core/H5POptions.php index d537912..173dc44 100644 --- a/Core/H5POptions.php +++ b/Core/H5POptions.php @@ -3,11 +3,9 @@ namespace Studit\H5PBundle\Core; -use Doctrine\ORM\EntityManager; +use Doctrine\DBAL\Exception\DriverException; use Doctrine\ORM\EntityManagerInterface; use Studit\H5PBundle\Entity\Option; -use Doctrine\DBAL\Exception\ConnectionException; -use Doctrine\DBAL\Exception\TableNotFoundException; class H5POptions { @@ -45,7 +43,7 @@ public function getOption($name, $default = null) { try { $this->retrieveStoredConfig(); - } catch (ConnectionException | TableNotFoundException $e) { + } catch (DriverException $e) { } if (isset($this->storedConfig[$name])) {