always load the application if possible. fix #358

This commit is contained in:
benoitc 2012-06-01 08:34:18 +02:00
parent 4b62182c48
commit 2cdc7a9cfb

View File

@ -137,8 +137,9 @@ class PasterServerApplication(PasterBaseApplication):
raise
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 self.app