Skip to content

Commit

Permalink
Fix offense Naming/RescuedExceptionsVariableName
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcoux committed May 2, 2019
1 parent 5adbe1c commit 742a142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/openQA_mail_notification.rb
Expand Up @@ -61,8 +61,8 @@ def send_notification(from, to, subject, message)
settings[:domain] = ENV["HOSTNAME"] if ENV["HOSTNAME"].present?
mail.delivery_method :smtp, settings
mail.deliver
rescue Exception => ex
$stderr.puts "#{SMTP_SERVER}: #{ex.inspect}"
rescue Exception => e
$stderr.puts "#{SMTP_SERVER}: #{e.inspect}"
abort
end
end
Expand Down

0 comments on commit 742a142

Please sign in to comment.