From 18995dc8fc7c61f548f59385e841bc0e70617cfb Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 4 Feb 2013 20:23:18 +0100 Subject: [PATCH] Fix internal error on broken I/O when listing comics. --- dosage | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/dosage b/dosage index 1fda79a29..74ce6c4a2 100755 --- a/dosage +++ b/dosage @@ -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