def handle_500(_, response, exception): """ Handles 500, error processing page exceptions. """ logging.exception(exception) response.set_status(500) response.write(jinja_environment.get_template('500.html').render())
def handle_500(_, response, exception): """ Handles 500, error processing page exceptions. """ logging.exception(exception) response.set_status(500) response.write(jinja_environment.get_template('500.html').render())
def handle_404(_, response, exception): """ Handles 404, page not found exceptions. """ logging.exception(exception) response.set_status(404) response.write(jinja_environment.get_template('404.html').render())
def handle_404(_, response, exception): """ Handles 404, page not found exceptions. """ logging.exception(exception) response.set_status(404) response.write(jinja_environment.get_template('404.html').render())