Django

Code

Ticket #6507: __init__.patch

File __init__.patch, 0.5 kB (added by qingfeng, 1 month ago)
  • __init__.py

    old new  
    256256        c.load(cookie) 
    257257    except CookieError: 
    258258        # Invalid cookie 
    259         return {} 
     259        # return {} 
     260        pass 
    260261 
    261262    cookiedict = {} 
    262263    for key in c.keys(): 
    263         cookiedict[key] = c.get(key).value 
     264        try: 
     265            cookiedict[key] = c.get(key).value 
     266        except: 
     267            pass 
    264268    return cookiedict 
    265269 
    266270class HttpResponse(object):