This commit is contained in:
Kovid Goyal 2025-06-05 06:15:36 +05:30
parent 0bc7e0d4b9
commit 237e54630a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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):