diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-06-14 18:47:44 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-06-14 18:47:44 +0200 |
commit | 31b138e5bb0ba706aa5c77781a532737e020850d (patch) | |
tree | f94289e46909ec9fdd0cff9aeac911a2b8bab302 /src/saml2/client.py | |
parent | 0841c814d8e2d1960d20de4884f9374c510c9291 (diff) | |
download | pysaml2-31b138e5bb0ba706aa5c77781a532737e020850d.tar.gz |
Made all exceptions inherit from a basic pySAML2 exception.
Diffstat (limited to 'src/saml2/client.py')
-rw-r--r-- | src/saml2/client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/saml2/client.py b/src/saml2/client.py index 91f8f6c1..650be922 100644 --- a/src/saml2/client.py +++ b/src/saml2/client.py @@ -21,7 +21,7 @@ to conclude its tasks. from saml2.request import LogoutRequest import saml2 -from saml2 import saml +from saml2 import saml, SAMLError from saml2 import BINDING_HTTP_REDIRECT from saml2 import BINDING_HTTP_POST from saml2 import BINDING_SOAP @@ -379,7 +379,7 @@ class Saml2Client(Base): else: srvs = self.metadata.attribute_service(entityid, binding) if srvs is []: - raise Exception("No attribute service support at entity") + raise SAMLError("No attribute service support at entity") destination = destinations(srvs)[0] @@ -405,7 +405,7 @@ class Saml2Client(Base): return self.apply_binding(binding, "%s" % query, destination, relay_state) else: - raise Exception("Unsupported binding") + raise SAMLError("Unsupported binding") def handle_logout_request(self, request, name_id, binding, sign=False, relay_state=""): |