From 2c1d04d0042994f65816f592e50709637795f31f 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/custodian') 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