Fix internal error on broken I/O when listing comics.
This commit is contained in:
parent
fbef0e5b73
commit
18995dc8fc
1 changed files with 9 additions and 6 deletions
15
dosage
15
dosage
|
@ -158,13 +158,16 @@ def run(options, comics):
|
||||||
def doList(columnList):
|
def doList(columnList):
|
||||||
"""List available comics."""
|
"""List available comics."""
|
||||||
out.info('Available comic scrapers:')
|
out.info('Available comic scrapers:')
|
||||||
|
out.info('Comics marked with [A] require age confirmation with the --adult option.')
|
||||||
scrapers = getScrapers(['@@'])
|
scrapers = getScrapers(['@@'])
|
||||||
if columnList:
|
try:
|
||||||
num = doColumnList(scrapers)
|
if columnList:
|
||||||
else:
|
num = doColumnList(scrapers)
|
||||||
num = doSingleList(scrapers)
|
else:
|
||||||
out.info('%d supported comics.' % num)
|
num = doSingleList(scrapers)
|
||||||
out.info('comics marked with [A] require age confirmation with the --adult option.')
|
out.info('%d supported comics.' % num)
|
||||||
|
except IOError:
|
||||||
|
pass
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue