module Travis
  module Tasks
    class ErrorHandler
      def call(worker, job, queue)
        yield
      rescue => ex
        Sidekiq.logger.warn(ex)

        if Travis.config.sentry.any?
          Raven.capture_exception(ex, extra: {sidekiq: job})
        end

        raise
      end
    end
  end
end

module Travis
  module Tasks
    class ErrorHandler
      def call(worker, job, queue)
        yield
      rescue => ex
        Sidekiq.logger.warn(ex)

        if Travis.config.sentry.any?
          Raven.capture_exception(ex, extra: {sidekiq: msg})
        end

        raise
      end
    end
  end
end

--- 
+++ 
@@ -7,7 +7,7 @@
         Sidekiq.logger.warn(ex)
 
         if Travis.config.sentry.any?
-          Raven.capture_exception(ex, extra: {sidekiq: msg})
+          Raven.capture_exception(ex, extra: {sidekiq: job})
         end
 
         raise
Send correct data to Sentry

Here, `msg` is not defined, so it raises a NameError.
