Skip to content

Commit

Permalink
Handling exception that could occur in the SentryExceptionReporter
Browse files Browse the repository at this point in the history
  • Loading branch information
shanelk committed Feb 2, 2024
1 parent c384715 commit fd7c20a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class SentryExceptionReporter(val dsn: String): ExceptionReporter {
val ctx = Sentry.getContext()
when (context) {
is HttpRequest -> {
val p = context.rawUser()
val p = try {
context.rawUser()
} catch(e: Exception) { null }
ctx.clear()
ctx.http = HttpInterface(
context.endpoint.path.toString(),
Expand Down

0 comments on commit fd7c20a

Please sign in to comment.