diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-04-28 16:31:00 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-04-28 16:31:00 +0200 |
commit | ee42c42b13f913a37f18b6c106d61ce63f73e503 (patch) | |
tree | 6bc48c4f6169bb72ab477613afdf262f53b8bf50 | |
parent | ff1b92f07191a208beb9035d72979e489298545d (diff) | |
parent | e089ddf1cfd040965e5b30972c52f1ac73e3ba3b (diff) | |
download | pysaml2-ee42c42b13f913a37f18b6c106d61ce63f73e503.tar.gz |
Merge branch 'master' of github.com:rohe/pysaml2
-rw-r--r-- | src/saml2/response.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/saml2/response.py b/src/saml2/response.py index f4111bb6..9d5acc46 100644 --- a/src/saml2/response.py +++ b/src/saml2/response.py @@ -327,9 +327,12 @@ class StatusResponse(object): status.status_code.status_code.value] else: excep = StatusError + if status.status_message: + msg = status.status_message.text + else: + msg = "Unknown error" raise excep( - "%s from %s" % (status.status_message.text, - status.status_code.value,)) + "%s from %s" % (msg, status.status_code.value,)) return True def issue_instant_ok(self): |