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