Mercurial > p > roundup > code
diff roundup/htmltemplate.py @ 408:424bfccd4118
"except:" is bad, bad , bad!
| author | Jürgen Hermann <jhermann@users.sourceforge.net> |
|---|---|
| date | Sat, 24 Nov 2001 00:53:12 +0000 |
| parents | bdc2ea127ae9 |
| children | a6088556e9ba |
line wrap: on
line diff
--- a/roundup/htmltemplate.py Sat Nov 24 00:45:42 2001 +0000 +++ b/roundup/htmltemplate.py Sat Nov 24 00:53:12 2001 +0000 @@ -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 @@ 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('<form action="new%s" method="POST" enctype="multipart/form-data">'%c) for key in form.keys(): @@ -865,6 +865,9 @@ # # $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 #
