Skip to content

Commit f73b581

Browse files
author
Jimmy John
committed
Fix unit test breakage
1 parent df8836f commit f73b581

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/onelogin/saml2/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def check_sp_settings(self, settings):
440440
elif not validate_url(sp['assertionConsumerService']['url']):
441441
errors.append('sp_acs_url_invalid')
442442

443-
if len(sp['attributeConsumingService']):
443+
if 'attributeConsumingService' in sp and len(sp['attributeConsumingService']):
444444
# so we have a attributeConsumingService element...
445445

446446
# serviceName and requestedAttrib are required

0 commit comments

Comments
 (0)