Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

Commit 8009ab6

Browse files
authored
Use get() instead of accessing by key ('ga_exp') (#40)
* Use get() instead of accessing by key ('ga_exp') * WIP
1 parent beccf2d commit 8009ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_google_optimize/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_experiments_variants(request):
3333
logger.warning(
3434
"experiment id %s not found in experiments cookie %s",
3535
experiment_id,
36-
request.COOKIES["_gaexp"],
36+
request.COOKIES.get("_gaexp"),
3737
)
3838
return None
3939

0 commit comments

Comments
 (0)