diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 12:51:29 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 12:51:29 +0000 |
commit | 2c1d04d0042994f65816f592e50709637795f31f (patch) | |
tree | cd9af5fb32dd91328dfdcaf0eaa96fe9fb88ea0f | |
parent | b99b80e3a780a290a87e2cfc10e24946cde45ca7 (diff) |
Don't rescue the 'Exception'
Instead rescue a 'StandardError' which is slightly more specific.
(Rescuing more specific exceptions is good.)
-rw-r--r-- | lib/custodian/protocoltest/smtprelay.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 # |