Author: rjollos
Date: Thu May 30 22:54:50 2013
New Revision: 1488043

URL: http://svn.apache.org/r1488043
Log:
Refs #529: Allow an `HTTPInternalError` to be raised when the product can't be 
found. Previously the request would not even return an error page.

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=1488043&r1=1488042&r2=1488043&view=diff
==============================================================================
--- bloodhound/trunk/trac/trac/web/main.py (original)
+++ bloodhound/trunk/trac/trac/web/main.py Thu May 30 22:54:50 2013
@@ -436,7 +436,8 @@ def dispatch_request(environ, start_resp
 
     run_once = environ['wsgi.run_once']
 
-    req = bootstrap.create_request(env, environ, start_response)
+    req = bootstrap.create_request(env, environ, start_response) \
+            if env is not None else Request(environ, start_response)
     translation.make_activable(lambda: req.locale, env.path if env else None)
     try:
         return _dispatch_request(req, env, env_error)


Reply via email to