Skip to content
Snippets Groups Projects
Commit c762ea52 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo Committed by GitHub
Browse files

Merge pull request #421 from sgomez/fix-use-exception

Removed unnecessary exception
parents 8eaf60b1 aaf82323
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
namespace SimpleSAML\Utils; namespace SimpleSAML\Utils;
use SimpleSAML\Logger; use SimpleSAML\Logger;
use Symfony\Component\Config\Definition\Exception\Exception;
class XML class XML
{ {
...@@ -405,7 +404,7 @@ class XML ...@@ -405,7 +404,7 @@ class XML
try { try {
$dom = \SAML2_DOMDocumentFactory::fromString($xml); $dom = \SAML2_DOMDocumentFactory::fromString($xml);
$res = true; $res = true;
} catch (Exception $e) { } catch (\Exception $e) {
$res = false; $res = false;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment