From d4742c611bef9158bb4addc333423a95d94b4f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 11 May 2013 11:43:29 +0200 Subject: [PATCH] better check for default value, this allows using false or empty string as defaults --- uwsgiconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwsgiconfig.py b/uwsgiconfig.py index f6b9b257..21e1ba51 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -570,7 +570,7 @@ class uConf(object): return None return value except: - if default: + if default is not None: return default return None