Commit d1874bce authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos
Browse files

Minor fix to prevent non-existing key errors

parent 0317348b
......@@ -1489,6 +1489,8 @@ def send_new_mail(subject, message, from_email, recipient_list, bcc_list):
def lookupShibAttr(attrmap, requestMeta):
for attr in attrmap:
if (attr in requestMeta) & (len(requestMeta[attr]) > 0):
return requestMeta[attr]
return ''
\ No newline at end of file
if (attr in requestMeta.keys()):
if len(requestMeta[attr]) > 0:
return requestMeta[attr]
return ''
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment