simplified code with finally

This commit is contained in:
Fabien Potencier
2015-01-14 10:06:57 +01:00
parent 6d50f987fb
commit 73311f1fb6
+1 -4
View File
@@ -370,12 +370,9 @@ class Twig_Environment
$this->setLoader($loader);
try {
$template = $this->loadTemplate($name);
} catch (Exception $e) {
} finally {
$this->setLoader($current);
throw $e;
}
$this->setLoader($current);
return $template;
}