You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by rj...@apache.org on 2014/04/16 01:35:57 UTC
svn commit: r1587754 - /bloodhound/trunk/trac/trac/web/main.py
Author: rjollos
Date: Tue Apr 15 23:35:56 2014
New Revision: 1587754
URL: http://svn.apache.org/r1587754
Log:
0.8dev: Fixed unbound local variable errors when exception is raised. Refs #800.
Patch by Olemis Lang.
Modified:
bloodhound/trunk/trac/trac/web/main.py
Modified: bloodhound/trunk/trac/trac/web/main.py
URL: http://svn.apache.org/viewvc/bloodhound/trunk/trac/trac/web/main.py?rev=1587754&r1=1587753&r2=1587754&view=diff
==============================================================================
--- bloodhound/trunk/trac/trac/web/main.py (original)
+++ bloodhound/trunk/trac/trac/web/main.py Tue Apr 15 23:35:56 2014
@@ -383,8 +383,8 @@ def dispatch_request(environ, start_resp
# Load handler for environment lookup and instantiation of request objects
from trac.hooks import load_bootstrap_handler
- bootstrap = load_bootstrap_handler(environ['trac.bootstrap_handler'],
- environ.get('wsgi.errors'))
+ bootstrap_ep = environ['trac.bootstrap_handler']
+ bootstrap = load_bootstrap_handler(bootstrap_ep, environ.get('wsgi.errors'))
# Determine the environment
@@ -432,7 +432,7 @@ def dispatch_request(environ, start_resp
try:
req = bootstrap.create_request(env, environ, start_response) \
if env is not None else Request(environ, start_response)
- except Exception:
+ except Exception, e:
log = environ.get('wsgi.errors')
if log:
log.write("[FAIL] [Trac] Entry point '%s' "