summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/parsejson.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions/parsejson.rb')
-rw-r--r--lib/puppet/parser/functions/parsejson.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/parsejson.rb b/lib/puppet/parser/functions/parsejson.rb
index b4af40e..f7c2896 100644
--- a/lib/puppet/parser/functions/parsejson.rb
+++ b/lib/puppet/parser/functions/parsejson.rb
@@ -15,7 +15,7 @@ be returned if the parsing of YAML string have failed.
begin
PSON::load(arguments[0]) || arguments[1]
- rescue Exception => e
+ rescue StandardError => e
if arguments[1]
arguments[1]
else