From 90bfa3bc2f47147328b98f2918d8d48437786405 Mon Sep 17 00:00:00 2001 From: Martin Wendt Date: Mon, 24 Jan 2022 14:39:58 +0100 Subject: [PATCH] Fix memory leak in exception handling Currently always the same exception **instance** is raised, which leads to a memory leak. (Propably all tracebacks are accumulated?) This fix should resolve this. --- lib/simpletal/simpleTALES.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simpletal/simpleTALES.py b/lib/simpletal/simpleTALES.py index 8e0df29..5abd306 100644 --- a/lib/simpletal/simpleTALES.py +++ b/lib/simpletal/simpleTALES.py @@ -58,7 +58,7 @@ class ContextContentException(Exception): pass -PATHNOTFOUNDEXCEPTION = PathNotFoundException() +PATHNOTFOUNDEXCEPTION = PathNotFoundException class ContextVariable(Exception):