lib/sentry/rails/rescued_exception_interceptor.rb in sentry-rails-4.1.3 vs lib/sentry/rails/rescued_exception_interceptor.rb in sentry-rails-4.1.4
- old
+ new
@@ -4,9 +4,11 @@
def initialize(app)
@app = app
end
def call(env)
+ return @app.call(env) unless Sentry.initialized?
+
begin
@app.call(env)
rescue => e
env["sentry.rescued_exception"] = e if Sentry.configuration.rails.report_rescued_exceptions
raise e