Permalink
Browse files

always load the application if possible. fix #358

  • Loading branch information...
1 parent 4b62182 commit 2cdc7a9cfb8548427195086a70c2669f1fe41f3d @benoitc committed Jun 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 gunicorn/app/pasterapp.py
@@ -137,8 +137,9 @@ def load_config(self):
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

0 comments on commit 2cdc7a9

Please sign in to comment.