[issue43657] shutil.rmtree fails on readonly files in Windows, onerror not called

Walter White report at bugs.python.org
Mon Mar 29 09:34:51 EDT 2021


Walter White <homerun4711 at gmail.com> added the comment:

I tried to add a try/except that handles a PermissionError to
my onerror function. But that did not work.

The doc on rmtree states 

Exceptions raised by onerror will not be caught.

Does this mean I can't use try/exept inside of onerror?

----------
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43657>
_______________________________________


More information about the Python-bugs-list mailing list