mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Fix #4151 (Opening ('View') an lrf book displays following trace)
This commit is contained in:
		
							parent
							
								
									0eb858a30b
								
							
						
					
					
						commit
						74b8a9f54d
					
				@ -177,7 +177,7 @@ class LRFStream(LRFObject):
 | 
				
			|||||||
            if len(self.stream) != decomp_size:
 | 
					            if len(self.stream) != decomp_size:
 | 
				
			||||||
                raise LRFParseError("Stream decompressed size is wrong!")
 | 
					                raise LRFParseError("Stream decompressed size is wrong!")
 | 
				
			||||||
        if stream.read(2) != '\x06\xF5':
 | 
					        if stream.read(2) != '\x06\xF5':
 | 
				
			||||||
            print "Warning: corrupted end-of-stream tag at %08X; skipping it"%stream.tell()-2
 | 
					            print "Warning: corrupted end-of-stream tag at %08X; skipping it"%(stream.tell()-2)
 | 
				
			||||||
        self.end_stream(None, None)
 | 
					        self.end_stream(None, None)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user