summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwilliam <william.ren@live.cn>2017-05-25 16:28:19 +0800
committerwilliam <william.ren@live.cn>2017-05-25 16:28:19 +0800
commit4012711f8d510b62caa94392b91886f9c1423a6d (patch)
tree70a2904698cc95ca4d92d66a24e0a9b743d56454 /src
parent8aa80e9e67f76ef230cb377dfe8b2050fc1f82bf (diff)
downloadpysaml2-4012711f8d510b62caa94392b91886f9c1423a6d.tar.gz
fixbug: 'NoneType' object has no attribute 'get_signer'
Diffstat (limited to 'src')
-rw-r--r--src/saml2/entity.py2
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