From 664ff3648246f38a4c49adc32e1ce0887dcbfe37 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 12:51:29 +0000 Subject: Don't rescue the 'Exception' Instead rescue a 'StandardError' which is slightly more specific. (Rescuing more specific exceptions is good.) --- lib/custodian/protocoltest/smtprelay.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/custodian/protocoltest/smtprelay.rb b/lib/custodian/protocoltest/smtprelay.rb index 85f7896..a1c0b33 100644 --- a/lib/custodian/protocoltest/smtprelay.rb +++ b/lib/custodian/protocoltest/smtprelay.rb @@ -108,7 +108,7 @@ module Custodian end # Net SMTP - rescue Exception => ex + rescue StandardError => ex # # for if we fail to send a message; this is a good thing # -- cgit v1.2.1