MCPcopy Create free account
hub / github.com/SolSaviour/INFO1112-Materials / default_error_handler

Method default_error_handler

Week 6/server.py:975–976  ·  view source on GitHub ↗
(self, res)

Source from the content-addressed store, hash-verified

973 return decorator(callback) if callback else decorator
974
975 def default_error_handler(self, res):
976 return tob(template(ERROR_PAGE_TEMPLATE, e=res, template_settings=dict(name='__ERROR_PAGE_TEMPLATE')))
977
978 def _handle(self, environ):
979 path = environ['bottle.raw_path'] = environ['PATH_INFO']

Callers

nothing calls this directly

Calls 2

tobFunction · 0.85
templateFunction · 0.85

Tested by

no test coverage detected