Fixes the whole application crashing when an exception happens in a handler.
Typically this was failing to send a message due to lacking permissions.
This seems like it may have regressed in #754 due to changes wrapping in Sentry.withScope, which has this caveat:
Any exceptions that occur within the callback function for withScope will not be caught, and all errors that occur will be silently ignored and not reported.
Fixes the whole application crashing when an exception happens in a handler. Typically this was failing to send a message due to lacking permissions.
This seems like it may have regressed in #754 due to changes wrapping in
Sentry.withScope
, which has this caveat:Fixes #769