web/application.py
changeset 10389 f9b06d03859f
parent 10001 1245357b3b3e
child 10411 4ee15441f2eb
equal deleted inserted replaced
10388:90fcddcce166 10389:f9b06d03859f
   566             return self.ajax_error_handler(req, ex)
   566             return self.ajax_error_handler(req, ex)
   567         try:
   567         try:
   568             req.data['ex'] = ex
   568             req.data['ex'] = ex
   569             if tb:
   569             if tb:
   570                 req.data['excinfo'] = excinfo
   570                 req.data['excinfo'] = excinfo
   571             req.form['vid'] = 'error'
       
   572             errview = self.vreg['views'].select('error', req)
   571             errview = self.vreg['views'].select('error', req)
   573             template = self.main_template_id(req)
   572             template = self.main_template_id(req)
   574             content = self.vreg['views'].main_template(req, template, view=errview)
   573             content = self.vreg['views'].main_template(req, template, view=errview)
   575         except Exception:
   574         except Exception:
   576             content = self.vreg['views'].main_template(req, 'error-template')
   575             content = self.vreg['views'].main_template(req, 'error-template')