Wrong args validation in WSGIApplication.init #815

glarrain opened this Issue Jul 8, 2014 · 1 comment


None yet

2 participants

glarrain commented Jul 8, 2014

(This bit me today)

In gunicorn.app.wsgiapp.WSGIApplication.init (line 34), if args has length different than one (instead of less than one), a parser error is triggered with a misleading message, aborting execution.

parser.error("No application module specified.")

IMHO (although I don't know much of gunicorn itself) it should be if len(args) < 1 instead of if len(args) != 1.


Do you have a use case where you have this problem?

Thank you

@matrixise matrixise closed this in 2e8db50 Jul 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment