[ZPT] CVS: Packages/Products/PageTemplates (Products/DC/PageTemplates) - TALES.py:1.13

evan@serenade.digicool.com evan@serenade.digicool.com
Fri, 18 May 2001 14:11:20 -0400


Update of /cvs-repository/Packages/Products/PageTemplates
In directory serenade:/home/evan/Zope/pt/lib/python/Products/PageTemplates

Modified Files:
	TALES.py 
Log Message:
Don't catch string exceptions, since they can be used to control the repsonse code.



--- Updated File TALES.py in package Packages/Products/PageTemplates --
--- TALES.py	2001/05/11 23:57:09	1.12
+++ TALES.py	2001/05/18 18:11:19	1.13
@@ -289,6 +289,8 @@
         except TALESError:
             raise
         except:
+            if type(sys.exc_info()[0]) is type(''):
+                raise
             raise TALESError, (`expression`, sys.exc_info()), sys.exc_info()[2]
 
     evaluateValue = evaluate