From 237e54630abee4470fef87695ef7a971549f47bf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 5 Jun 2025 06:15:36 +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 4cf31307fc..be16e830bd 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, **kw): + def r(tdir, *a, **kw): if tdir and os.path.exists(tdir): - rmtree(tdir, **kw) + rmtree(tdir, *a, **kw) return r def safe_remove_temp_dir(rmtree, tdir):