[New-bugs-announce] [issue1376] uu module catches a wrong exception type

billiejoex report at bugs.python.org
Sat Nov 3 00:13:53 CET 2007

New submission from billiejoex:

uu module on line 53 erroneously tries to catch an AttributeError
exception type.

                mode = os.stat(in_file).st_mode
            except AttributeError:

This is not correct since os.stat(), as far as I know, should raise
OSError exceptions only.
This would turn in an error in case we pass a "broken" symlink as
in_file argument.

components: Library (Lib)
messages: 57077
nosy: billiejoex
severity: normal
status: open
title: uu module catches a wrong exception type
type: behavior
versions: Python 2.5

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list