From 168c2055ba393c3b13a0884ca7175a5bf2a47499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Tue, 20 Oct 2015 11:34:08 +0200 Subject: [PATCH] catch all exception if table doesn't exists --- lib/private/lock/dblockingprovider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/lock/dblockingprovider.php b/lib/private/lock/dblockingprovider.php index 1e93a6cec6..450a0a27ab 100644 --- a/lib/private/lock/dblockingprovider.php +++ b/lib/private/lock/dblockingprovider.php @@ -187,7 +187,7 @@ class DBLockingProvider extends AbstractLockingProvider { public function __destruct() { try { $this->cleanEmptyLocks(); - } catch (\PDOException $e) { + } catch (\Exception $e) { // If the table is missing, the clean up was successful if ($this->connection->tableExists('file_locks')) { throw $e;