diff options
author | Roland Hedberg <roland@catalogix.se> | 2017-05-30 09:00:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-30 09:00:03 +0200 |
commit | b7b79c988c360ecdf80600e0b006c2aec3101d38 (patch) | |
tree | 300acda50214f996c9ee20167877afa269342795 /src | |
parent | 44d35168fd42627186d1d85f6c0cdebaa6a1e4ba (diff) | |
parent | 4012711f8d510b62caa94392b91886f9c1423a6d (diff) | |
download | pysaml2-b7b79c988c360ecdf80600e0b006c2aec3101d38.tar.gz |
Merge pull request #418 from WilliamRen/master
fixbug: 'NoneType' object has no attribute 'get_signer'
Diffstat (limited to 'src')
-rw-r--r-- | src/saml2/entity.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/entity.py b/src/saml2/entity.py index 1276b80d..27b30fe9 100644 --- a/src/saml2/entity.py +++ b/src/saml2/entity.py @@ -224,7 +224,7 @@ class Entity(HTTPBase): info["method"] = "POST" elif binding == BINDING_HTTP_REDIRECT: logger.info("HTTP REDIRECT") - if 'sigalg' in kwargs: + if kwargs.get('sigalg', ''): signer = self.sec.sec_backend.get_signer(kwargs['sigalg']) else: signer = None |