Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RescuedExceptionInterceptor: Handle empty configuration
Previously, it could happen that `Sentry.configuration` was `nil`. In this case, calling `rails` would produce a `NoMethodError`. We fix this issue by using safe navigation. Furthermore, this commit ensures we use a reasonable default in case the configuration couldn't be loaded. Since the config `report_rescued_exceptions` defaults to `true`, we assume this value here, too. Fixes #2386
- Loading branch information