Skip to content

Commit b7b79c9

Browse files
authored
Merge pull request #418 from WilliamRen/master
fixbug: 'NoneType' object has no attribute 'get_signer'
2 parents 44d3516 + 4012711 commit b7b79c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def apply_binding(self, binding, msg_str, destination="", relay_state="",
224224
info["method"] = "POST"
225225
elif binding == BINDING_HTTP_REDIRECT:
226226
logger.info("HTTP REDIRECT")
227-
if 'sigalg' in kwargs:
227+
if kwargs.get('sigalg', ''):
228228
signer = self.sec.sec_backend.get_signer(kwargs['sigalg'])
229229
else:
230230
signer = None

0 commit comments

Comments
 (0)