summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 12:51:29 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 12:51:29 +0000
commit2c1d04d0042994f65816f592e50709637795f31f (patch)
treecd9af5fb32dd91328dfdcaf0eaa96fe9fb88ea0f /lib
parentb99b80e3a780a290a87e2cfc10e24946cde45ca7 (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')
-rw-r--r--lib/custodian/protocoltest/smtprelay.rb2
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
#