Skip to content

Commit 4974fda

Browse files
author
Jürgen Hermann
committed
"except:" is bad, bad , bad!
1 parent beb755b commit 4974fda

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

roundup/htmltemplate.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: htmltemplate.py,v 1.45 2001-11-22 15:46:42 jhermann Exp $
18+
# $Id: htmltemplate.py,v 1.46 2001-11-24 00:53:12 jhermann Exp $
1919

2020
__doc__ = """
2121
Template engine.
@@ -850,7 +850,7 @@ def render(self, form):
850850
c = self.classname
851851
try:
852852
s = open(os.path.join(self.templates, c+'.newitem')).read()
853-
except:
853+
except IOError:
854854
s = open(os.path.join(self.templates, c+'.item')).read()
855855
w('<form action="new%s" method="POST" enctype="multipart/form-data">'%c)
856856
for key in form.keys():
@@ -865,6 +865,9 @@ def render(self, form):
865865

866866
#
867867
# $Log: not supported by cvs2svn $
868+
# Revision 1.45 2001/11/22 15:46:42 jhermann
869+
# Added module docstrings to all modules.
870+
#
868871
# Revision 1.44 2001/11/21 23:35:45 jhermann
869872
# Added globbing for win32, and sample marking in a 2nd file to test it
870873
#

0 commit comments

Comments
 (0)