[Zope-dev] bad bare except in PageTemplateFile.py
Steve Alexander
steve@cat-box.net
Thu, 18 Jul 2002 09:05:36 +0100
Shane Hathaway wrote:
>
> os.stat() raises OSError if the file is not found, in which case mtime
> should be set to 0.
Surely if the file is not found, that's an error because the
PageTemplateFile is pointing at a source file that doesn't exist.
I cannot think of any reason I'd want not to be informed that the source
file for a PageTemplateFile isn't there. That's clearly a programming error.
So, I suggest removing the try: except: clause entirely, and letting
os.stat() raise its error.
Or, am I missing something here?
--
Steve Alexander