From 21b194559e3879bfa713430f5a15401ec7c6b9bb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 6 Apr 2025 21:06:53 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index 681d5989f1..cf81c688a3 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -1628,7 +1628,7 @@ def get_container(path, log=None, tdir=None, tweak_mode=False, ebook_cls=None) - if own_tdir: tdir = PersistentTemporaryDirectory(f'_{ebook_cls.book_type}_container') try: - ebook = ebook_cls(path, log, tdir=tdir) + ebook = ebook_cls(path, log=log, tdir=tdir) ebook.tweak_mode = tweak_mode except BaseException: if own_tdir: