[Pkg-owncloud-commits] [owncloud] 45/129: catch all exception if table doesn't exists
David Prévot
taffit at moszumanska.debian.org
Thu Nov 5 01:04:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 530f313dff14b415adc5fb4a2a5682dee360fc7a
Author: Björn Schießle <bjoern at schiessle.org>
Date: Tue Oct 20 11:34:08 2015 +0200
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 1e93a6c..450a0a2 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list