diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/Assets.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/Assets.php index bc2107f8d..74d8d82b5 100644 --- a/core/lib/Thelia/Core/Template/Smarty/Plugins/Assets.php +++ b/core/lib/Thelia/Core/Template/Smarty/Plugins/Assets.php @@ -43,18 +43,7 @@ class Assets extends AbstractSmartyPlugin public function blockJavascripts($params, $content, \Smarty_Internal_Template $template, &$repeat) { - try { - return $this->assetManager->processSmartyPluginCall('js', $params, $content, $template, $repeat); - } catch (\Exception $e) { - $catchException = $this->getNormalizedParam($params, array('catchException')); - if ($catchException == "true") { - $repeat = false; - - return null; - } else { - throw $e; - } - } + return $this->assetManager->processSmartyPluginCall('js', $params, $content, $template, $repeat); } public function blockImages($params, $content, \Smarty_Internal_Template $template, &$repeat)