'Robustified cookie parser that silently drops invalid cookies.'

def _load_cookies(self):

    cookies = Cookie.SimpleCookie()
    for fragment in self.headers.get('cookie', '').split(';    '):
        if fragment:
            try:
                cookies.load(fragment)
            except Cookie.CookieError:
                pass
    return cookies
