Skip to content

Commit 3597d43

Browse files
committed
Small patch from olau@iola.dk to avoid constant 500 traceback when someone tries to push an invalid cookie.
- Legacy-Id: 4553
1 parent c587b0e commit 3597d43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

django/http/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def load(self, rawdata, ignore_parse_errors=False):
292292
def _loose_set(self, key, real_value, coded_value):
293293
try:
294294
self._strict_set(key, real_value, coded_value)
295-
except CookieError:
295+
except:
296296
self.bad_cookies.append(key)
297297
dict.__setitem__(self, key, None)
298298

0 commit comments

Comments
 (0)