This commit is contained in:
Kovid Goyal
2025-03-08 20:45:13 +05:30
parent 687e905670
commit ff9bcc93bf
+1 -1
View File
@@ -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: