Skip to content

Commit 1c85e44

Browse files
author
Ioannis Kakavas
committed
Fix syntax error
1 parent ab079b9 commit 1c85e44

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/satosa/backends/saml2.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,8 @@ def authn_request(self, context, entity_id):
156156
with open(self.config["sp_config"]["idp_blacklist_file"]) as blacklist_file:
157157
blacklist_array = json.load(blacklist_file)['blacklist']
158158
if entity_id in blacklist_array:
159-
satosa_logging(logger, logging.DEBUG, "IdP with EntityID {} is blacklisted".format(entity_id), context.state,
160-
exc_info=False)
161-
raise SATOSAAuthenticationError(context.state, "Selected IdP is blacklisted for this backend")
159+
satosa_logging(logger, logging.DEBUG, "IdP with EntityID {} is blacklisted".format(entity_id), context.state, exc_info=False)
160+
raise SATOSAAuthenticationError(context.state, "Selected IdP is blacklisted for this backend")
162161

163162
kwargs = {}
164163
authn_context = self.construct_requested_authn_context(entity_id)

0 commit comments

Comments
 (0)