Catch invalid comic names.

This commit is contained in:
Bastian Kleineidam 2012-10-11 21:32:31 +02:00
parent 67939b3d71
commit 9c4f7b086f

4
dosage
View file

@ -118,9 +118,13 @@ def run(options, comics):
if len(comics) <= 0:
out.write('Warning: No comics specified, bailing out!')
return 1
try:
if options.modhelp:
return displayHelp(comics, options.basepath)
return getComics(options, comics)
except ValueError, msg:
out.write("Error: %s" % msg)
return 1
def doList(columnList):