We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa63d12 commit 7976a59Copy full SHA for 7976a59
1 file changed
webware/Cookie.py
@@ -120,7 +120,10 @@ def setHttpOnly(self, httpOnly=True):
120
self._cookie['httponly'] = httpOnly
121
122
def setSameSite(self, sameSite='Strict'):
123
- self._cookie['samesite'] = sameSite
+ try:
124
+ self._cookie['samesite'] = sameSite
125
+ except CookieEngine.CookieError: # Python < 3.8
126
+ pass
127
128
def setValue(self, value):
129
self._value = value
0 commit comments