[Zope-Checkins] CVS: Zope3/lib/python/Zope/PageTemplate - PageTemplateFile.py:1.1.2.15
Fred L. Drake, Jr.
fdrake@acm.org
Wed, 27 Feb 2002 17:40:58 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/PageTemplate
In directory cvs.zope.org:/tmp/cvs-serv20462
Modified Files:
Tag: Zope-3x-branch
PageTemplateFile.py
Log Message:
Remove an unqualified "except:" by adding the specific exception that needs
to be checked.
=== Zope3/lib/python/Zope/PageTemplate/PageTemplateFile.py 1.1.2.14 => 1.1.2.15 ===
return
__traceback_info__ = self.filename
- try: mtime=os.stat(self.filename)[8]
- except: mtime=0
+ try:
+ mtime = os.path.getmtime(self.filename)
+ except OSError:
+ mtime = 0
if hasattr(self, '_v_program') and mtime == self._v_last_read:
return
self.pt_edit(open(self.filename), None)