mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 10:45:08 +01:00
Fix #4151 (Opening ('View') an lrf book displays following trace)
This commit is contained in:
parent
0eb858a30b
commit
74b8a9f54d
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ def read_stream(self, tag, stream):
|
|||
if len(self.stream) != decomp_size:
|
||||
raise LRFParseError("Stream decompressed size is wrong!")
|
||||
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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue