def __handle_error(path, error):
# All errors are treated as a 404 since reverse proxies such as Apache
# don't handle 500 errors in a desirable way. For any error but a 404,
# an error is logged.
if error != http_client.NOT_FOUND:
cherrypy.log("Error encountered while processing "
"template: {0}\n".format(path), traceback=True)
raise cherrypy.NotFound()
评论列表
文章目录