Fix #4664 (conversion of a comic collection fails if the comics.txt contains a blank line)

This commit is contained in:
Kovid Goyal 2010-01-24 11:36:10 -07:00
parent 0b4de38330
commit cb753ba603

View File

@ -340,6 +340,9 @@ class ComicInput(InputFormatPlugin):
%stream.name)
for line in open('comics.txt',
'rb').read().decode('utf-8').splitlines():
line = line.strip()
if not line:
continue
fname, title = line.partition(':')[0], line.partition(':')[-1]
fname = os.path.join(tdir, *fname.split('/'))
if not title: