Small patch from olau@iola.dk to avoid constant 500 traceback when someone tries to push an invalid cookie.

- Legacy-Id: 4553
This commit is contained in:
Henrik Levkowetz 2012-06-29 00:33:54 +00:00
parent c587b0ed44
commit 3597d436ac

View file

@ -292,7 +292,7 @@ class CompatCookie(SimpleCookie):
def _loose_set(self, key, real_value, coded_value):
try:
self._strict_set(key, real_value, coded_value)
except CookieError:
except:
self.bad_cookies.append(key)
dict.__setitem__(self, key, None)