From 95bbfebba799d3ab328ed698195c6716a7e5db25 Mon Sep 17 00:00:00 2001 From: hernani Date: Sat, 11 Sep 2010 01:09:06 +0000 Subject: [PATCH] Possible fix for the KeyError problem. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@590 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/templatetags/ui_registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/templatetags/ui_registry.py b/forum/templatetags/ui_registry.py index 02d90ea..21ba3bb 100644 --- a/forum/templatetags/ui_registry.py +++ b/forum/templatetags/ui_registry.py @@ -20,7 +20,7 @@ class LoadRegistryNode(template.Node): if result: result += separator result += ui_object.render(context) - except Exception, e: + except (KeyError, Exception), e: import traceback logging.error("Exception %s rendering ui objects %s: \n%s" % ( e, ui_object, traceback.format_exc() -- 2.45.2