mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
always load the application if possible. fix #358
This commit is contained in:
parent
4b62182c48
commit
2cdc7a9cfb
@ -137,8 +137,9 @@ class PasterServerApplication(PasterBaseApplication):
|
|||||||
raise
|
raise
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
if self.app is None and hasattr(self, "cfgfname"):
|
if hasattr(self, "cfgfname"):
|
||||||
return loadapp(self.cfgurl, relative_to=self.relpath)
|
return loadapp(self.cfgurl, relative_to=self.relpath)
|
||||||
|
|
||||||
return self.app
|
return self.app
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user