mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix non django application loading
fix error introduced in 423e203db944ea5b250e2816cbeb9c4741cc736f.
This commit is contained in:
parent
ba945bd635
commit
cd90653fe3
@ -25,7 +25,11 @@ class WSGIApplication(Application):
|
||||
sys.path.insert(0, cwd)
|
||||
|
||||
def load(self):
|
||||
djangoapp.make_default_env(self.cfg)
|
||||
try:
|
||||
djangoapp.make_default_env(self.cfg)
|
||||
except RuntimeError:
|
||||
# ignore silently error while loading non django apps.
|
||||
pass
|
||||
return util.import_app(self.app_uri)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user