def process_request(self, request):

        # Determine which theme the user has configured and store in local
        # thread storage so that it persists to the custom template loader
        try:
            _local.theme = request.COOKIES[get_theme_cookie_name()]
        except __HOLE__:
            _local.theme = get_default_theme()
dataset/ETHPy150Open openstack/horizon/horizon/themes.py/ThemeMiddleware.process_request