summaryrefslogtreecommitdiff
path: root/src/saml2/assertion.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/saml2/assertion.py')
-rw-r--r--src/saml2/assertion.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/saml2/assertion.py b/src/saml2/assertion.py
index cd01463b..4474bf42 100644
--- a/src/saml2/assertion.py
+++ b/src/saml2/assertion.py
@@ -35,6 +35,9 @@ def _filter_values(vals, vlist=None, must=False):
if not vlist: # No value specified equals any value
return vals
+ if vals is None: # cannot iterate over None, return early
+ return vals
+
if isinstance(vlist, six.string_types):
vlist = [vlist]