From: stefan Date: Mon, 9 Feb 2009 19:18:47 +0000 (+0000) Subject: Catch missing page template errors. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=953c5e425f2356ed1ded1880d46f2260e116dfd8;p=roundup.git Catch missing page template errors. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4118 57a73879-2fb5-44c3-a270-3262357dd7e2 --- 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