New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong args validation in WSGIApplication.init #815

Closed
glarrain opened this Issue Jul 8, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@glarrain
Contributor

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.

@matrixise

This comment has been minimized.

Show comment
Hide comment
@matrixise

matrixise Jul 9, 2014

Collaborator

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

Thank you

Collaborator

matrixise commented Jul 9, 2014

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