mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
06dd87542f
commit
7e1068852d
@ -245,8 +245,9 @@ class Importer(object):
|
|||||||
raise ValueError('The exported data in %s is not valid, tail too small' % name)
|
raise ValueError('The exported data in %s is not valid, tail too small' % name)
|
||||||
part_num, version, is_last = struct.unpack(Exporter.TAIL_FMT, raw)
|
part_num, version, is_last = struct.unpack(Exporter.TAIL_FMT, raw)
|
||||||
if version > Exporter.VERSION:
|
if version > Exporter.VERSION:
|
||||||
raise ValueError('The exported data in %s is not valid, version (%d) is higher than maximum supported version.' % (
|
raise ValueError('The exported data in %s is not valid,'
|
||||||
name, version))
|
' version (%d) is higher than maximum supported version.'
|
||||||
|
' You might need to upgrade calibre first.' % (name, version))
|
||||||
part_map[part_num] = path, is_last
|
part_map[part_num] = path, is_last
|
||||||
nums = sorted(part_map)
|
nums = sorted(part_map)
|
||||||
if not nums:
|
if not nums:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user