Skip to content

Commit bbe667e

Browse files
committed
wrong type
1 parent 15f8858 commit bbe667e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pyff/samlmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ def discojson_sp(e, global_trust_info=None, global_md_sources=None):
936936
for profile_el in tinfo_el.findall('.//{%s}TrustProfile' % NS['ti']):
937937
name = profile_el.attrib['name']
938938
strict = profile_el.attrib.get('strict', True)
939+
strict = strict if type(strict) is bool else strict in ('t', 'T', 'true', 'True')
939940
sp['profiles'][name] = {'strict': strict, 'entity': [], 'entities': []}
940941

941942
display_name = {}

0 commit comments

Comments
 (0)