Change by Walter White :
--
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue43657>
___
___
Python-bugs-list mailing list
Unsubscrib
Walter White 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?
--
s
Change by Walter White :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue43657>
___
___
Python-bugs-list
Walter White added the comment:
Just saw:
class PermissionError(OSError)
--
___
Python tracker
<https://bugs.python.org/issue43657>
___
___
Python-bug
New submission from Walter White :
shutil.rmtree fails on readonly files in Windows.
Usually people are using the onerror callback to handle file permissions and
retry, but that is not possible in this case because it is not triggerd.
onerror is only triggered if a OSError is found.
In my