Example #1
0
 def exception_handler(self, exc_info, environ):
     simple_html_error = False
     if self.xmlhttp_key:
         get_vars = wsgilib.parse_querystring(environ)
         if dict(get_vars).get(self.xmlhttp_key):
             simple_html_error = True
     return errormiddleware.handle_exception(
         exc_info, environ['wsgi.errors'],
         html=True,
         debug_mode=True,
         simple_html_error=simple_html_error)
Example #2
0
 def exception_handler(self, exc_info, environ):
     simple_html_error = False
     if self.xmlhttp_key:
         get_vars = request.parse_querystring(environ)
         if dict(get_vars).get(self.xmlhttp_key):
             simple_html_error = True
     return errormiddleware.handle_exception(
         exc_info,
         environ['wsgi.errors'],
         html=True,
         debug_mode=True,
         simple_html_error=simple_html_error)