Skip to content

Commit 29b586d

Browse files
author
Ioannis Kakavas
committed
attr might not be in _fro. Resolves #441
1 parent 5d7f27e commit 29b586d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/attribute_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def get_local_name(acs, attr, name_format):
246246
for aconv in acs:
247247
#print(ac.format, name_format)
248248
if aconv.name_format == name_format:
249-
return aconv._fro[attr]
249+
return aconv._fro.get(attr)
250250

251251

252252
def d_to_local_name(acs, attr):

0 commit comments

Comments
 (0)