This commit is contained in:
Kovid Goyal 2011-06-24 20:19:18 -06:00
parent 2c2cf3d168
commit 06b64b39de

View File

@ -351,7 +351,9 @@ class ComicInput(InputFormatPlugin):
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):