From 3d0b0fe012512c9ed5a15056e53366d944a88a6a Mon Sep 17 00:00:00 2001 From: benoitc Date: Tue, 27 Aug 2013 15:31:06 +0200 Subject: [PATCH] value can be None --- gunicorn/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gunicorn/config.py b/gunicorn/config.py index b5bca173..666fc09a 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -150,11 +150,13 @@ class Config(object): @property def env(self): + raw_env = self.settings['raw_env'].get() env = {} - if not self.settings['raw_env']: + + if not raw_env: return env - for e in self.settings['raw_env'].get(): + for e in raw_env: s = six.bytes_to_str(e) try: k, v = s.split('=')