Skip to content

Commit e1d3242

Browse files
author
Roland Hedberg
committed
Best effort.
1 parent bcb83d0 commit e1d3242

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/saml2/s_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,10 @@ def error_status_factory(info):
219219
exc_val = EXCEPTION2STATUS[info.__class__]
220220
except KeyError:
221221
exc_val = samlp.STATUS_AUTHN_FAILED
222-
msg = info.args[0]
222+
try:
223+
msg = info.args[0]
224+
except IndexError:
225+
msg = "%s" % info
223226
status = samlp.Status(
224227
status_message=samlp.StatusMessage(text=msg),
225228
status_code=samlp.StatusCode(

0 commit comments

Comments
 (0)