Catch invalid comic names.

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

10
dosage
View file

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