From 4447345345f35f79591d686203b576e11e988e9b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 14 Jan 2021 18:07:41 +0100 Subject: [PATCH] policies: fix display of stacktrace in events --- authentik/policies/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/policies/process.py b/authentik/policies/process.py index 4ac054d84..11b2b651f 100644 --- a/authentik/policies/process.py +++ b/authentik/policies/process.py @@ -79,7 +79,7 @@ class PolicyProcess(Process): self.create_event(EventAction.POLICY_EXECUTION, result=policy_result) except PolicyException as exc: # Create policy exception event - error_string = "\n".join(format_tb(exc.__traceback__) + [str(exc)]) + error_string = "".join(format_tb(exc.__traceback__)) + str(exc) self.create_event(EventAction.POLICY_EXCEPTION, error=error_string) LOGGER.debug("P_ENG(proc): error", exc=exc) policy_result = PolicyResult(False, str(exc))