From: Tom Hughes Date: Tue, 24 Mar 2015 23:13:37 +0000 (+0000) Subject: Rescue LoadError explicitly as it doesn't inherit from StandardError X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/f1e386a2785e80de0e0626ff261d95869c184861 Rescue LoadError explicitly as it doesn't inherit from StandardError --- diff --git a/cookbooks/chef/templates/default/client.rb.erb b/cookbooks/chef/templates/default/client.rb.erb index 92c96feb3..52cbbdf01 100644 --- a/cookbooks/chef/templates/default/client.rb.erb +++ b/cookbooks/chef/templates/default/client.rb.erb @@ -44,7 +44,7 @@ begin exception_handlers << email_handler report_handlers << email_handler -rescue +rescue LoadError # Ignore errors in case required gems not installed yet