def _on_internal_error(self, failure, request): log.err() # failure.printTraceback() sentry.capture(failure) # only propagate str value to avoid exposing internal details ex = InternalError(str(failure.value)) return self._write_error(request, 500, ex)
def _internalError(self, failure, request): request.setResponseCode(500) request.write(failure.getErrorMessage()) log.err() sentry.capture(failure)
def _internalError(self, failure, request): log.err() sentry.capture(failure) return self._writeError(request, 500, failure.getErrorMessage())