From 2e8db50989e5eaa894546598342f6b5cae763ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Wirtel?= Date: Fri, 25 Jul 2014 10:23:07 +0200 Subject: [PATCH] We need at least one argument for the WSGIApplication fix #815 --- gunicorn/app/wsgiapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/app/wsgiapp.py b/gunicorn/app/wsgiapp.py index 82b4547e..cf4db1eb 100644 --- a/gunicorn/app/wsgiapp.py +++ b/gunicorn/app/wsgiapp.py @@ -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])