示例#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)
示例#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)
示例#3
0
 def _internalError(self, failure, request):
     request.setResponseCode(500)
     request.write(failure.getErrorMessage())
     log.err()
     sentry.capture(failure)
示例#4
0
 def _internalError(self, failure, request):
     request.setResponseCode(500)
     request.write(failure.getErrorMessage())
     log.err()
     sentry.capture(failure)
示例#5
0
文件: resources.py 项目: kmike/splash
 def _internalError(self, failure, request):
     log.err()
     sentry.capture(failure)
     return self._writeError(request, 500, failure.getErrorMessage())
示例#6
0
文件: resources.py 项目: yzou/splash
 def _internalError(self, failure, request):
     log.err()
     sentry.capture(failure)
     return self._writeError(request, 500, failure.getErrorMessage())