Fix internal error on broken I/O when listing comics.

This commit is contained in:
Bastian Kleineidam 2013-02-04 20:23:18 +01:00
parent fbef0e5b73
commit 18995dc8fc

15
dosage
View file

@ -158,13 +158,16 @@ def run(options, comics):
def doList(columnList):
"""List available comics."""
out.info('Available comic scrapers:')
out.info('Comics marked with [A] require age confirmation with the --adult option.')
scrapers = getScrapers(['@@'])
if columnList:
num = doColumnList(scrapers)
else:
num = doSingleList(scrapers)
out.info('%d supported comics.' % num)
out.info('comics marked with [A] require age confirmation with the --adult option.')
try:
if columnList:
num = doColumnList(scrapers)
else:
num = doSingleList(scrapers)
out.info('%d supported comics.' % num)
except IOError:
pass
return 0