Skip to content

Commit

Permalink
Merge pull request #19 from lingoda/08-create-storage-file-and-bug-fix
Browse files Browse the repository at this point in the history
Catch all Exceptions related to DB [cache:clear]
  • Loading branch information
jorisdugue committed Sep 21, 2020
2 parents 0cb9ab8 + e321efe commit 4a41f31
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Core/H5POptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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])) {
Expand Down

0 comments on commit 4a41f31

Please sign in to comment.