Issue 35332: shutil.rmtree(..., ignore_errors=True) doesn't ignore errors from os.close()
Created on 2018-11-27 19:51 by rabraham, last changed 2018-12-01 17:22 by rabraham.
| Messages (2) | |||
|---|---|---|---|
| msg330553 - (view) | Author: Ronal Abraham (rabraham) | Date: 2018-11-27 19:51 | |
These lines throw intermittently for me on AIX when removing a directory on NFS (python version 3.6.6-1), even when "ignore_errors=True": https://github.com/python/cpython/blob/v3.6.6rc1/Lib/shutil.py#L433 https://github.com/python/cpython/blob/v3.6.6rc1/Lib/shutil.py#L492 Should there be try-except blocks around these lines and calls to onerror(...)? |
|||
| msg330856 - (view) | Author: Ronal Abraham (rabraham) | Date: 2018-12-01 17:22 | |
I forgot to mention: the exception raised is an OSError and the errno is 52 (ESTALE on AIX). |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-12-01 17:22:44 | rabraham | set | messages: + msg330856 |
| 2018-11-28 16:18:48 | SilentGhost | set | nosy:
+ David.Edelsohn |
| 2018-11-27 19:51:53 | rabraham | create | |