From e7155f4714ec81e0cadde52f6fccb7b5441cdd55 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Tue, 16 Feb 2010 15:23:30 +0100 Subject: [PATCH] obviously since we already used it, it's here. would have been better if we testes the right. fixed! variable --- gunicorn/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/main.py b/gunicorn/main.py index 6ef890a0..b6f4fad7 100644 --- a/gunicorn/main.py +++ b/gunicorn/main.py @@ -145,7 +145,7 @@ def paste_server(app, global_conf=None, host="127.0.0.1", port=None, umask = kwargs.get('umask', UMASK) user = kwargs.get('user') group = kwargs.get('group') - if kwargs: + if global_conf: workers = int(global_conf.get('workers', workers)) debug = global_conf.get('debug', debug) == "true" if debug: