mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	...
This commit is contained in:
		
							parent
							
								
									687e905670
								
							
						
					
					
						commit
						ff9bcc93bf
					
				@ -52,7 +52,7 @@ class Database:
 | 
				
			|||||||
            connect()
 | 
					            connect()
 | 
				
			||||||
            self.needs_copy = False
 | 
					            self.needs_copy = False
 | 
				
			||||||
        except apsw.IOError:
 | 
					        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:
 | 
					            with open(self.path_on_device, 'rb') as src, PersistentTemporaryFile(suffix='-kobo-db.sqlite') as dest:
 | 
				
			||||||
                shutil.copyfileobj(src, dest)
 | 
					                shutil.copyfileobj(src, dest)
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user