diff --git a/django_google_optimize/utils.py b/django_google_optimize/utils.py index 656b74d..288be3e 100644 --- a/django_google_optimize/utils.py +++ b/django_google_optimize/utils.py @@ -33,7 +33,7 @@ def get_experiments_variants(request): logger.warning( "experiment id %s not found in experiments cookie %s", experiment_id, - request.COOKIES["_gaexp"], + request.COOKIES.get("_gaexp"), ) return None