From f3bc1712ecd11b85f0406ed80655a12d53efae6c Mon Sep 17 00:00:00 2001 From: jhermann Date: Sat, 24 Nov 2001 00:53:12 +0000 Subject: [PATCH] "except:" is bad, bad , bad! git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@420 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/htmltemplate.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roundup/htmltemplate.py b/roundup/htmltemplate.py index 040b9a8..a10f9e7 100644 --- a/roundup/htmltemplate.py +++ b/roundup/htmltemplate.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: htmltemplate.py,v 1.45 2001-11-22 15:46:42 jhermann Exp $ +# $Id: htmltemplate.py,v 1.46 2001-11-24 00:53:12 jhermann Exp $ __doc__ = """ Template engine. @@ -850,7 +850,7 @@ class NewItemTemplate(TemplateFunctions): c = self.classname try: s = open(os.path.join(self.templates, c+'.newitem')).read() - except: + except IOError: s = open(os.path.join(self.templates, c+'.item')).read() w('
'%c) for key in form.keys(): @@ -865,6 +865,9 @@ class NewItemTemplate(TemplateFunctions): # # $Log: not supported by cvs2svn $ +# Revision 1.45 2001/11/22 15:46:42 jhermann +# Added module docstrings to all modules. +# # Revision 1.44 2001/11/21 23:35:45 jhermann # Added globbing for win32, and sample marking in a 2nd file to test it # -- 2.30.2