Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 def _internalError(self, failure, request):
     request.setResponseCode(500)
     request.write(failure.getErrorMessage())
     log.err()
     sentry.capture(failure)
Exemple #4
0
 def _internalError(self, failure, request):
     request.setResponseCode(500)
     request.write(failure.getErrorMessage())
     log.err()
     sentry.capture(failure)
Exemple #5
0
 def _internalError(self, failure, request):
     log.err()
     sentry.capture(failure)
     return self._writeError(request, 500, failure.getErrorMessage())
Exemple #6
0
 def _internalError(self, failure, request):
     log.err()
     sentry.capture(failure)
     return self._writeError(request, 500, failure.getErrorMessage())