@@ -275,9 +275,10 @@ EM.run do
}.catch { |e|
LOG.error e
- if e.is_a?(::Exception)
+ case e
+ when :Exception
Sentry.capture_exception(e)
- elsif e.is_a?(EM::HttpClient)
+ when EM::HttpClient
LOG.error e.response_header
Sentry.capture_message(
"HTTP Error: #{e.response_header.http_status} @ #{e.last_effective_url}"