summaryrefslogtreecommitdiff
path: root/src/saml2/response.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/saml2/response.py')
-rw-r--r--src/saml2/response.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/saml2/response.py b/src/saml2/response.py
index c16be47f..118f7fe0 100644
--- a/src/saml2/response.py
+++ b/src/saml2/response.py
@@ -726,7 +726,8 @@ class AuthnResponse(StatusResponse):
return False
has_keyinfo = False
- for element in extension_elements_to_elements(data.key_info,
+ key_info = data.key_info or ()
+ for element in extension_elements_to_elements(key_info,
[samlp, saml, xenc, ds]):
if isinstance(element, ds.KeyInfo):
has_keyinfo = True