fix non django application loading

fix error introduced in 423e203db944ea5b250e2816cbeb9c4741cc736f.
This commit is contained in:
benoitc 2013-06-29 06:25:18 +02:00
parent ba945bd635
commit cd90653fe3

View File

@ -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)