Skip to content

Commit 9cbbd9b

Browse files
authored
Merge pull request #442 from jkakavas/fix_441
attr might not be in _fro. Resolves #441
2 parents 5d7f27e + 29b586d commit 9cbbd9b

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)