Skip to content

Commit ba86be2

Browse files
committed
Fix references to undefined variables
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 24c6e28 commit ba86be2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/satosa/frontends/saml2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def _handle_authn_response(self, context, internal_response, idp):
397397
try:
398398
args['sign_alg'] = getattr(xmldsig, sign_alg_attr)
399399
except AttributeError as e:
400-
msg = "Unsupported sign algorithm {}".format(sign_alg)
400+
msg = "Unsupported sign algorithm {}".format(sign_alg_attr)
401401
logline = lu.LOG_FMT.format(id=lu.get_session_id(context.state), message=msg)
402402
logger.error(logline)
403403
raise Exception(msg) from e
@@ -411,7 +411,7 @@ def _handle_authn_response(self, context, internal_response, idp):
411411
try:
412412
args['digest_alg'] = getattr(xmldsig, digest_alg_attr)
413413
except AttributeError as e:
414-
msg = "Unsupported digest algorithm {}".format(digest_alg)
414+
msg = "Unsupported digest algorithm {}".format(digest_alg_attr)
415415
logline = lu.LOG_FMT.format(id=lu.get_session_id(context.state), message=msg)
416416
logger.error(logline)
417417
raise Exception(msg) from e

0 commit comments

Comments
 (0)