This commit is contained in:
Kovid Goyal 2015-12-19 09:00:45 +05:30
parent 06dd87542f
commit 7e1068852d

View File

@ -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: