From: jhermann Date: Sat, 24 Nov 2001 00:53:12 +0000 (+0000) Subject: "except:" is bad, bad , bad! X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f3bc1712ecd11b85f0406ed80655a12d53efae6c;p=roundup.git "except:" is bad, bad , bad! git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@420 57a73879-2fb5-44c3-a270-3262357dd7e2 --- 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 #