Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0a59819
)
Catch cookie errors.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 31 Oct 2011 08:09:03 +0000
(09:09 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 31 Oct 2011 08:09:03 +0000
(09:09 +0100)
wrw/cookie.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/cookie.py
b/wrw/cookie.py
index
2c6f982
..
37e8708
100644
(file)
--- a/
wrw/cookie.py
+++ b/
wrw/cookie.py
@@
-9,7
+9,10
@@
def addcookies(req):
class cookiedict(object):
def __init__(self, req):
class cookiedict(object):
def __init__(self, req):
- self.bk = Cookie.SimpleCookie(req.ihead.get("Cookie"))
+ try:
+ self.bk = Cookie.SimpleCookie(req.ihead.get("Cookie"))
+ except Cookie.CookieError:
+ self.bk = Cookie.SimpleCookie()
self.codec = Cookie.SimpleCookie()
req.oncommit(addcookies)
self.codec = Cookie.SimpleCookie()
req.oncommit(addcookies)