From f95be25fcb7762bcebb5069a3ef2d2f8a223219f Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Sun, 4 May 2014 18:19:00 +1200
Subject: [PATCH] Fix screenshot tests

---
 tests/PHPUnit/proxy/index.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/PHPUnit/proxy/index.php b/tests/PHPUnit/proxy/index.php
index 527fd76833..4494ca0e0f 100644
--- a/tests/PHPUnit/proxy/index.php
+++ b/tests/PHPUnit/proxy/index.php
@@ -8,10 +8,8 @@ require realpath(dirname(__FILE__)) . "/includes.php";
 
 Piwik_TestingEnvironment::addHooks();
 
-try {
+if (\Piwik\DbHelper::isInstalled()) {
     \Piwik\ViewDataTable\Manager::clearAllViewDataTableParameters();
-} catch(Exception $e) {
-    // eg. Piwik not installed yet
 }
 
 \Piwik\Profiler::setupProfilerXHProf();
-- 
GitLab