We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc54a8c + f8615e9 commit 569c64fCopy full SHA for 569c64f
src/saml2/response.py
@@ -216,10 +216,10 @@ def for_me(conditions, myself):
216
if not restriction.audience:
217
continue
218
for audience in restriction.audience:
219
- if audience.text.strip() == myself:
+ if audience.text and audience.text.strip() == myself:
220
return True
221
else:
222
- logger.debug("AudienceRestriction - One condition not satisfied: %s != %s" % (audience.text.strip(), myself))
+ logger.debug("AudienceRestriction - One condition not satisfied: {} != {}".format(audience.text, myself))
223
logger.debug("AudienceRestrictions not satisfied!")
224
return False
225
0 commit comments