

def __call__(self, env, start_response):
    if ('swift.trans_id' not in env):
        raise Exception('Trans id should always be in env')
    if env.error:
        if (self.error == 'strange'):
            raise StrangeException('whoa')
        raise Exception('An error occurred')
    if (self.body_iter is None):
        return ['FAKE APP']
    else:
        return self.body_iter

dataset/ETHPy150Open openstack/swift/test/unit/common/middleware/test_except.py FakeApp.__call__/VarMisuse@32/57 `self`->`env`