From d55b9fd5f23a0b12219242d9781f8fef764b59d9 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Mon, 8 Jul 2013 15:25:52 -0700 Subject: [PATCH] set-cookie parameter might be missing. --- src/saml2/httpbase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/saml2/httpbase.py b/src/saml2/httpbase.py index 96f53cc..16243a4 100644 --- a/src/saml2/httpbase.py +++ b/src/saml2/httpbase.py @@ -212,6 +212,8 @@ class HTTPBase(object): self.set_cookie(SimpleCookie(r.headers["set-cookie"]), r) except AttributeError: pass + except KeyError: + pass return r