[issue21259] replace "except: pass" by "except Exception: pass"

STINNER Victor report at bugs.python.org
Thu Apr 17 04:05:52 CEST 2014


STINNER Victor added the comment:

I reviewed  issue21259-replace_except_pass-2.patch. Please split this huge patch into smaller patches:

1) remove dummy "except: raise"
2) use os.unlink()
3) replace "except: pass" with more precise exceptions like "except OSError:" => please write multiple small patches for this part
4) generic change "except: pass" to "except Exception: pass"

You might open a new issue for these 4 kind of patches (4 issues).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21259>
_______________________________________


More information about the Python-bugs-list mailing list