summaryrefslogtreecommitdiffstats
path: root/install/share/wsgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'install/share/wsgi.py')
-rw-r--r--install/share/wsgi.py21
1 files changed, 9 insertions, 12 deletions
diff --git a/install/share/wsgi.py b/install/share/wsgi.py
index 9f7d3f487..5205e8d6d 100644
--- a/install/share/wsgi.py
+++ b/install/share/wsgi.py
@@ -36,16 +36,13 @@ env._finalize_core(**dict(DEFAULT_CONFIG))
# Initialize the API with the proper debug level
api.bootstrap(context='server', debug=env.debug, log=None)
-try:
- api.finalize()
-except StandardError, e:
- api.log.error('Failed to start IPA: %s' % e)
-else:
- api.log.info('*** PROCESS START ***')
- # This is the WSGI callable:
- def application(environ, start_response):
- if not environ['wsgi.multithread']:
- return api.Backend.wsgi_dispatch(environ, start_response)
- else:
- api.log.error("IPA does not work with the threaded MPM, use the pre-fork MPM")
+api.finalize()
+
+
+# This is the WSGI callable:
+def application(environ, start_response):
+ if not environ['wsgi.multithread']:
+ return api.Backend.wsgi_dispatch(environ, start_response)
+ else:
+ api.log.error("IPA does not work with the threaded MPM, use the pre-fork MPM")