From 953c5e425f2356ed1ded1880d46f2260e116dfd8 Mon Sep 17 00:00:00 2001 From: stefan Date: Mon, 9 Feb 2009 19:18:47 +0000 Subject: [PATCH] Catch missing page template errors. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4118 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index a3ea172..d1775da 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -892,7 +892,6 @@ class Client: ''' name = self.classname extension = self.template - pt = self.instance.templates.get(name, extension) # catch errors so we can handle PT rendering errors more nicely args = { @@ -900,6 +899,7 @@ class Client: 'error_message': self.error_message } try: + pt = self.instance.templates.get(name, extension) # let the template render figure stuff out result = pt.render(self, None, None, **args) self.additional_headers['Content-Type'] = pt.content_type -- 2.30.2