mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #801888 (conversion to pdb fails with some epub/mobi formatted files)
This commit is contained in:
commit
7c5c0aaf68
@ -17,6 +17,8 @@ def decompress_doc(data):
|
||||
return cPalmdoc.decompress(data)
|
||||
|
||||
def compress_doc(data):
|
||||
if not data:
|
||||
return u''
|
||||
return cPalmdoc.compress(data)
|
||||
|
||||
def test():
|
||||
|
Loading…
x
Reference in New Issue
Block a user