

def __call__(self, environ, start_response):
    '\n        The WSGI application interface.\n        '
    if environ.get('paste.throw_errors'):
        return self.application(environ, start_response)
    environ['paste.throw_errors'] = True
    try:
        __traceback_supplement__ = (Supplement, self, environ)
        sr_checker = ResponseStartChecker(start_response)
        app_iter = self.application(environ, sr_checker)
        return self.make_catching_iter(app_iter, environ, sr_checker)
    except:
        exc_info = sys.exc_info()
        try:
            for expect in __traceback_supplement__.get('paste.expected_exceptions', []):
                if isinstance(exc_info[1], expect):
                    raise
            start_response('500 Internal Server Error', [('content-type', 'text/html')], exc_info)
            response = self.exception_handler(exc_info, environ)
            if six.PY3:
                response = response.encode('utf8')
            return [response]
        finally:
            exc_info = None

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Paste-2.0.1/paste/exceptions/errormiddleware.py ErrorMiddleware.__call__/VarMisuse@108/170 `environ`->`__traceback_supplement__`