diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2016-05-16 21:25:51 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2016-05-16 21:25:51 +0200 |
commit | 1e2d95c0377c3a5aa251900d596171c8e700790f (patch) | |
tree | 3585674803593792efaccb293b5c1bf5db2bd4c5 /src/saml2/assertion.py | |
parent | a73e11bfc2b0b994b9f0010e6af386e935a6a939 (diff) | |
download | pysaml2-1e2d95c0377c3a5aa251900d596171c8e700790f.tar.gz |
Handle empty required list.
Added missing recipient.
Diffstat (limited to 'src/saml2/assertion.py')
-rw-r--r-- | src/saml2/assertion.py | 2 |
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"]: |