From ff9bcc93bf8cd487a3083c87fb816e2b1208b2b8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 8 Mar 2025 20:45:13 +0530 Subject: [PATCH] ... --- src/calibre/devices/kobo/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/kobo/db.py b/src/calibre/devices/kobo/db.py index 61eae643ea..840170415a 100644 --- a/src/calibre/devices/kobo/db.py +++ b/src/calibre/devices/kobo/db.py @@ -52,7 +52,7 @@ class Database: connect() self.needs_copy = False except apsw.IOError: - debug_print(f'Kobo: I/O error connecting to {self.device_database_path} copying it into temporary storage and connecting there') + debug_print(f'Kobo: I/O error connecting to {self.path_on_device} copying it into temporary storage and connecting there') with open(self.path_on_device, 'rb') as src, PersistentTemporaryFile(suffix='-kobo-db.sqlite') as dest: shutil.copyfileobj(src, dest) try: