[issue1376] uu module catches a wrong exception type

Guido van Rossum report at bugs.python.org
Sat Nov 3 16:17:45 CET 2007


Guido van Rossum added the comment:

You misunderstand. The try/except is there in case os.stat isn't defined 
or its result doesn't have a st_mode attribute. If the stat operation 
fails due to a problem with the file, there's not much point in proceeding 
since the subsequent open() call would fail the same way.

----------
nosy: +gvanrossum
resolution:  -> invalid
status: open -> closed

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1376>
__________________________________


More information about the Python-bugs-list mailing list