Merge pull request #418 from WilliamRen/master

fixbug: 'NoneType' object has no attribute 'get_signer'
This commit is contained in:
Roland Hedberg 2017-05-30 09:00:03 +02:00 committed by GitHub
commit b7b79c988c
1 changed files with 1 additions and 1 deletions

View File

@ -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