We need at least one argument for the WSGIApplication fix #815

This commit is contained in:
Stéphane Wirtel 2014-07-25 10:23:07 +02:00
parent 4b1cbe6a37
commit 2e8db50989

View File

@ -31,7 +31,7 @@ class WSGIApplication(Application):
from .pasterapp import paste_config
return paste_config(self.cfg, self.cfgurl, self.relpath)
if len(args) != 1:
if len(args) < 1:
parser.error("No application module specified.")
self.cfg.set("default_proc_name", args[0])