Skip to content

Commit aac3c66

Browse files
committed
Improve wrapper compatibility with onexc for py312compat.shutil_rmtree
1 parent 870268f commit aac3c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools/py312compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ def shutil_rmtree(path, ignore_errors=False, onexc=None):
77
return shutil.rmtree(path, ignore_errors, onexc=onexc)
88

99
def _handler(fn, path, excinfo):
10-
onexc(fn, path, excinfo[1])
10+
return onexc(fn, path, excinfo[1])
1111

1212
return shutil.rmtree(path, ignore_errors, onerror=_handler)

0 commit comments

Comments
 (0)