Catch invalid comic names.
This commit is contained in:
parent
67939b3d71
commit
9c4f7b086f
1 changed files with 7 additions and 3 deletions
10
dosage
10
dosage
|
@ -118,9 +118,13 @@ def run(options, comics):
|
|||
if len(comics) <= 0:
|
||||
out.write('Warning: No comics specified, bailing out!')
|
||||
return 1
|
||||
if options.modhelp:
|
||||
return displayHelp(comics, options.basepath)
|
||||
return getComics(options, comics)
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue