MCPcopy Index your code
hub / github.com/plotly/dash / _wrap_errors

Method _wrap_errors

dash/backends/_quart.py:145–151  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

143
144 @self.server.errorhandler(Exception)
145 async def _wrap_errors(error):
146 if self.error_handling_mode == "ignore":
147 return Response(
148 "Internal server error.", status=500, content_type="text/plain"
149 )
150 tb = self._get_traceback(secret, error)
151 return Response(tb, status=500, content_type="text/html")
152
153 def register_timing_hooks(self, _first_run: bool): # type: ignore[name-defined] parity with Flask factory
154 @self.server.before_request

Callers

nothing calls this directly

Calls 1

_get_tracebackMethod · 0.95

Tested by

no test coverage detected