summaryrefslogtreecommitdiff
path: root/lib/facter
diff options
context:
space:
mode:
authorFelix Frank <Felix.Frank@Alumni.TU-Berlin.de>2016-03-29 01:59:54 +0200
committerFelix Frank <Felix.Frank@Alumni.TU-Berlin.de>2016-03-29 01:59:54 +0200
commit0cea94a82ef277092897a03446f6e6fccba90d53 (patch)
tree5c1a4ffc818b9a96bda68fdc07d0a4a81cbc01db /lib/facter
parentb63849c7865e4191e9df5a7651c16c072facee3d (diff)
catch StandardError rather than the gratuitous Exception
Diffstat (limited to 'lib/facter')
-rw-r--r--lib/facter/facter_dot_d.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/facter/facter_dot_d.rb b/lib/facter/facter_dot_d.rb
index d85940d..5c5fb1f 100644
--- a/lib/facter/facter_dot_d.rb
+++ b/lib/facter/facter_dot_d.rb
@@ -48,7 +48,7 @@ class Facter::Util::DotD
end
end
end
- rescue Exception => e
+ rescue StandardError => e
Facter.warn("Failed to handle #{file} as text facts: #{e.class}: #{e}")
end
@@ -65,7 +65,7 @@ class Facter::Util::DotD
setcode { v }
end
end
- rescue Exception => e
+ rescue StandardError => e
Facter.warn("Failed to handle #{file} as json facts: #{e.class}: #{e}")
end
@@ -77,7 +77,7 @@ class Facter::Util::DotD
setcode { v }
end
end
- rescue Exception => e
+ rescue StandardError => e
Facter.warn("Failed to handle #{file} as yaml facts: #{e.class}: #{e}")
end
@@ -106,7 +106,7 @@ class Facter::Util::DotD
end
end
end
- rescue Exception => e
+ rescue StandardError => e
Facter.warn("Failed to handle #{file} as script facts: #{e.class}: #{e}")
Facter.debug(e.backtrace.join("\n\t"))
end