Handle empty required list.

Added missing recipient.
This commit is contained in:
Roland Hedberg
2016-05-16 21:25:51 +02:00
parent a73e11bfc2
commit 1e2d95c037
2 changed files with 2 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ def post_entity_categories(maps, **kwargs):
restrictions = {}
try:
required = [d['friendly_name'].lower() for d in kwargs['required']]
except KeyError:
except (KeyError, TypeError):
required = []
if kwargs["mds"]:

View File

@@ -532,7 +532,7 @@ class Server(Entity):
to_sign = []
if identity:
farg = self.update_farg(in_response_to, destination, farg=farg)
farg = self.update_farg(in_response_to, sp_entity_id, farg=farg)
_issuer = self._issuer(issuer)
ast = Assertion(identity)