mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 22:33:15 +02:00
...
This commit is contained in:
parent
2c2cf3d168
commit
06b64b39de
1 changed files with 3 additions and 1 deletions
|
|
@ -351,7 +351,9 @@ def get_comics_from_collection(self, stream):
|
|||
comics = []
|
||||
with CurrentDir(tdir):
|
||||
if not os.path.exists('comics.txt'):
|
||||
raise ValueError('%s is not a valid comic collection'
|
||||
raise ValueError((
|
||||
'%s is not a valid comic collection'
|
||||
' no comics.txt was found in the file')
|
||||
%stream.name)
|
||||
raw = open('comics.txt', 'rb').read()
|
||||
if raw.startswith(codecs.BOM_UTF16_BE):
|
||||
|
|
|
|||
Loading…
Reference in a new issue