mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fix KeyError if builtins isn't touched.
This commit is contained in:
parent
ab25537b67
commit
2c5f221d1a
@ -53,7 +53,7 @@ class Config(object):
|
||||
execfile(path, globals(), self.cfg)
|
||||
except Exception, e:
|
||||
sys.exit("Could not read config file: %r\n %s" % (path, e))
|
||||
self.cfg.pop("__builtins__")
|
||||
self.cfg.pop("__builtins__", None)
|
||||
|
||||
opts = [(k, v) for (k, v) in opts.iteritems() if v is not None]
|
||||
self.cfg.update(dict(opts))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user