From d4893957426dc9e941538dec3366da1e8c761029 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Sat, 4 Jul 2020 14:36:46 +0200 Subject: [PATCH] py3: do not expect Exception.message (#44810) --- src/authentic2/idp/saml/saml2_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/idp/saml/saml2_endpoints.py b/src/authentic2/idp/saml/saml2_endpoints.py index a78bfe15..65cf604d 100644 --- a/src/authentic2/idp/saml/saml2_endpoints.py +++ b/src/authentic2/idp/saml/saml2_endpoints.py @@ -137,7 +137,7 @@ def log_assert(func, exception_classes=(AssertionError,)): try: return func(request, *args, **kwargs) except exception_classes as e: - return error_redirect(request, e.message or repr(e)) + return error_redirect(request, str(e)) return f ##### -- 2.26.2