catch all exception if table doesn't exists

This commit is contained in:
Björn Schießle 2015-10-20 11:34:08 +02:00
parent adfb33b791
commit 168c2055ba
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ class DBLockingProvider extends AbstractLockingProvider {
public function __destruct() { public function __destruct() {
try { try {
$this->cleanEmptyLocks(); $this->cleanEmptyLocks();
} catch (\PDOException $e) { } catch (\Exception $e) {
// If the table is missing, the clean up was successful // If the table is missing, the clean up was successful
if ($this->connection->tableExists('file_locks')) { if ($this->connection->tableExists('file_locks')) {
throw $e; throw $e;