mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
value can be None
This commit is contained in:
parent
4e3428af0e
commit
3d0b0fe012
@ -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('=')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user