summaryrefslogtreecommitdiff
path: root/src/saml2/assertion.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2016-05-16 21:25:51 +0200
committerRoland Hedberg <roland.hedberg@adm.umu.se>2016-05-16 21:25:51 +0200
commit1e2d95c0377c3a5aa251900d596171c8e700790f (patch)
tree3585674803593792efaccb293b5c1bf5db2bd4c5 /src/saml2/assertion.py
parenta73e11bfc2b0b994b9f0010e6af386e935a6a939 (diff)
downloadpysaml2-1e2d95c0377c3a5aa251900d596171c8e700790f.tar.gz
Handle empty required list.
Added missing recipient.
Diffstat (limited to 'src/saml2/assertion.py')
-rw-r--r--src/saml2/assertion.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/assertion.py b/src/saml2/assertion.py
index 1b678b63..4af4d225 100644
--- a/src/saml2/assertion.py
+++ b/src/saml2/assertion.py
@@ -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"]: