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 | 664ff3648246f38a4c49adc32e1ce0887dcbfe37 (patch) | |
tree | 9bf51d13a0fdaecbb8e9c3d0a934df2653841988 /lib/custodian | |
parent | 7bb66351888fb67e46958c5e21dce09e6980c1a8 (diff) |
Don't rescue the 'Exception'
Instead rescue a 'StandardError' which is slightly more specific.
(Rescuing more specific exceptions is good.)
Diffstat (limited to 'lib/custodian')
-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 # |