We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b555833 commit d4749b5Copy full SHA for d4749b5
cookie_consent/util.py
@@ -33,8 +33,11 @@ def dict_to_cookie_str(dic):
33
34
35
def get_cookie_dict_from_request(request):
36
- cookie_str = request.COOKIES.get(settings.COOKIE_CONSENT_NAME)
37
- return parse_cookie_str(cookie_str)
+ try:
+ cookie_str = request.COOKIES.get(settings.COOKIE_CONSENT_NAME)
38
+ return parse_cookie_str(cookie_str)
39
+ except:
40
+ pass
41
42
43
def set_cookie_dict_to_response(response, dic):
0 commit comments