diff options
author | Johan Lundberg <lundberg@sunet.se> | 2018-12-05 15:37:43 +0100 |
---|---|---|
committer | Johan Lundberg <lundberg@sunet.se> | 2018-12-05 15:37:43 +0100 |
commit | 2dce359b7aa0fdd70a08039c207ef55ba71385c9 (patch) | |
tree | 2d7db32eb58d390d54eefdede4684e21192aa02a /src | |
parent | 65b136e2c822d3b0e08e0b3c1dc121b6c7de646c (diff) | |
download | pysaml2-2dce359b7aa0fdd70a08039c207ef55ba71385c9.tar.gz |
Handle non standard response error status codes
Diffstat (limited to 'src')
-rw-r--r-- | src/saml2/response.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saml2/response.py b/src/saml2/response.py index 323e71e6..6bfe4d7c 100644 --- a/src/saml2/response.py +++ b/src/saml2/response.py @@ -360,8 +360,8 @@ class StatusResponse(object): if status.status_code.value != samlp.STATUS_SUCCESS: logger.info("Not successful operation: %s", status) if status.status_code.status_code: - excep = STATUSCODE2EXCEPTION[ - status.status_code.status_code.value] + excep = STATUSCODE2EXCEPTION.get( + status.status_code.status_code.value, StatusError) else: excep = StatusError if status.status_message: |