Best effort.
This commit is contained in:
@@ -219,7 +219,10 @@ def error_status_factory(info):
|
|||||||
exc_val = EXCEPTION2STATUS[info.__class__]
|
exc_val = EXCEPTION2STATUS[info.__class__]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
exc_val = samlp.STATUS_AUTHN_FAILED
|
exc_val = samlp.STATUS_AUTHN_FAILED
|
||||||
|
try:
|
||||||
msg = info.args[0]
|
msg = info.args[0]
|
||||||
|
except IndexError:
|
||||||
|
msg = "%s" % info
|
||||||
status = samlp.Status(
|
status = samlp.Status(
|
||||||
status_message=samlp.StatusMessage(text=msg),
|
status_message=samlp.StatusMessage(text=msg),
|
||||||
status_code=samlp.StatusCode(
|
status_code=samlp.StatusCode(
|
||||||
|
|||||||
Reference in New Issue
Block a user