From 0bc7e0d4b900872dd9689048488c43c9ab31b2fe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 4 Jun 2025 19:50:45 +0530 Subject: [PATCH] ... --- src/calibre/startup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/startup.py b/src/calibre/startup.py index 7328b438f4..4cf31307fc 100644 --- a/src/calibre/startup.py +++ b/src/calibre/startup.py @@ -111,9 +111,9 @@ def initialize_calibre(): orig_remove_temp_dir = util._remove_temp_dir def safe_rmtree(rmtree): - def r(tdir): + def r(tdir, **kw): if tdir and os.path.exists(tdir): - rmtree(tdir) + rmtree(tdir, **kw) return r def safe_remove_temp_dir(rmtree, tdir):