Skip to content
Snippets Groups Projects
Commit 168c2055 authored by Björn Schießle's avatar Björn Schießle
Browse files

catch all exception if table doesn't exists

parent adfb33b7
No related branches found
No related tags found
No related merge requests found
...@@ -187,7 +187,7 @@ class DBLockingProvider extends AbstractLockingProvider { ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment