Ticket #6507: __init__.patch

File __init__.patch, 545 bytes (added by QingFeng, 16 years ago)
  • __init__.py

     
    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):
Back to Top