mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
the app was initialized 2 times. close #324
thanks @fafhrd91 for the diff
This commit is contained in:
parent
01ad98f98a
commit
1efb622938
@ -137,7 +137,7 @@ class PasterServerApplication(PasterBaseApplication):
|
||||
raise
|
||||
|
||||
def load(self):
|
||||
if hasattr(self, "cfgfname"):
|
||||
if self.app is None and hasattr(self, "cfgfname"):
|
||||
return loadapp(self.cfgurl, relative_to=self.relpath)
|
||||
return self.app
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user