From 8115c38670e78c396334d988d3c5d10021de4648 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Tue, 10 Sep 2013 08:04:33 +0200 Subject: [PATCH] Remove the exception catch, this should be handled by a higher layer And is when using index.php as entry point --- lib/private/legacy/config.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/private/legacy/config.php b/lib/private/legacy/config.php index 7e498013737..c457979113e 100644 --- a/lib/private/legacy/config.php +++ b/lib/private/legacy/config.php @@ -83,11 +83,7 @@ class OC_Config { * */ public static function setValue($key, $value) { - try { - self::$object->setValue($key, $value); - } catch (\OC\HintException $e) { - \OC_Template::printErrorPage($e->getMessage(), $e->getHint()); - } + self::$object->setValue($key, $value); } /** @@ -98,10 +94,6 @@ class OC_Config { * */ public static function deleteKey($key) { - try { - self::$object->deleteKey($key); - } catch (\OC\HintException $e) { - \OC_Template::printErrorPage($e->getMessage(), $e->getHint()); - } + self::$object->deleteKey($key); } } -- 2.39.5