Skip to content

Commit 39cd8ab

Browse files
committed
Net::SMTPFatalError has a common superclass of Net::ProtocolError
1 parent 20f19fa commit 39cd8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def receive(event, data, payload = nil)
7575
else
7676
false
7777
end
78-
rescue Service::ConfigurationError, Errno::EHOSTUNREACH, Errno::ECONNRESET, SocketError, Net::SMTPFatalError => err
78+
rescue Service::ConfigurationError, Errno::EHOSTUNREACH, Errno::ECONNRESET, SocketError, Net::ProtocolError => err
7979
Service.stats.increment "hook.fail.config.#{hook_name}"
8080
if !err.is_a?(Service::Error)
8181
err = ConfigurationError.new(err)

0 commit comments

Comments
 (0)