summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setuptools/py312compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/py312compat.py b/setuptools/py312compat.py
index dd5af58e..28175b1f 100644
--- a/setuptools/py312compat.py
+++ b/setuptools/py312compat.py
@@ -7,6 +7,6 @@ def shutil_rmtree(path, ignore_errors=False, onexc=None):
return shutil.rmtree(path, ignore_errors, onexc=onexc)
def _handler(fn, path, excinfo):
- onexc(fn, path, excinfo[1])
+ return onexc(fn, path, excinfo[1])
return shutil.rmtree(path, ignore_errors, onerror=_handler)