Hi, my web app fails with incorrect cookie set by google analytics 
javascript. 
My question is how I can capture this exception, and issue redirect back 
clearing the buggy cookie?

Here is traceback:

  File "/home/dw0rm/lib/python2.6/web/application.py", line 282, in wsgi
    result = self.handle_with_processors()
  File "/home/dw0rm/lib/python2.6/web/application.py", line 252, in 
handle_with_processors
    return process(self.processors)
  File "/home/dw0rm/lib/python2.6/web/application.py", line 249, in process
    raise self.internalerror()
  File "/home/dw0rm/lib/python2.6/web/application.py", line 473, in 
internalerror
    return debugerror.debugerror()
  File "/home/dw0rm/lib/python2.6/web/debugerror.py", line 305, in 
debugerror
    return web._InternalError(djangoerror())
  File "/home/dw0rm/lib/python2.6/web/debugerror.py", line 295, in 
djangoerror
    return t(exception_type, exception_value, frames)
  File "/home/dw0rm/lib/python2.6/web/template.py", line 879, in __call__
    return BaseTemplate.__call__(self, *a, **kw)
  File "/home/dw0rm/lib/python2.6/web/template.py", line 806, in __call__
    return self.t(*a, **kw)
  File "/home/dw0rm/lib/python2.6/web/debugerror.pyo", line 196, in 
__template__
    
  File "/home/dw0rm/lib/python2.6/web/webapi.py", line 316, in cookies
    cookie.load(ctx.env.get('HTTP_COOKIE', ''))
  File "/usr/local/lib/python2.6/Cookie.py", line 625, in load
    self.__ParseString(rawdata)
  File "/usr/local/lib/python2.6/Cookie.py", line 658, in __ParseString
    self.__set(K, rval, cval)
  File "/usr/local/lib/python2.6/Cookie.py", line 578, in __set
    M.set(key, real_value, coded_value)
  File "/usr/local/lib/python2.6/Cookie.py", line 455, in set
    raise CookieError("Illegal key value: %s" % key)
CookieError: Illegal key value: )|utmcmd


-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to