Issue #49 resolved

Exception in injector when app returns 304

Patrick Gerken
created an issue

The response return code is 304: Not modified. It did then also not bother to give the content type

{{{

!python

Traceback (most recent call last): File "/home/patrick/.eggs/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 1068, in process_request_in_thread self.finish_request(request, client_address) File "/home/patrick/python/python-2.6.5/lib/python2.6/SocketServer.py", line 320, in finish_request self.RequestHandlerClass(request, client_address, self) File "/home/patrick/python/python-2.6.5/lib/python2.6/SocketServer.py", line 615, in init self.handle() File "/home/patrick/.eggs/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 442, in handle BaseHTTPRequestHandler.handle(self) File "/home/patrick/python/python-2.6.5/lib/python2.6/BaseHTTPServer.py", line 329, in handle self.handle_one_request() File "/home/patrick/.eggs/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 437, in handle_one_request self.wsgi_execute() File "/home/patrick/.eggs/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 287, in wsgi_execute self.wsgi_start_response) File "/home/patrick/.eggs/repoze.debug-0.7.1-py2.6.egg/repoze/debug/pdbpm.py", line 11, in middleware return application(environ, start_response) File "/home/patrick/.eggs/WebOb-1.0.1-py2.6.egg/webob/dec.py", line 147, in call resp = self.call_func(req, args, self.kwargs) File "/home/patrick/.eggs/WebOb-1.0.1-py2.6.egg/webob/dec.py", line 208, in call_func return self.func(req, *args, kwargs) File "/home/patrick/.eggs/fanstatic-0.10-py2.6.egg/fanstatic/publisher.py", line 134, in call return request.get_response(self.app) File "/home/patrick/.eggs/WebOb-1.0.1-py2.6.egg/webob/request.py", line 935, in get_response application, catch_exc_info=False) File "/home/patrick/.eggs/WebOb-1.0.1-py2.6.egg/webob/request.py", line 904, in call_application app_iter = application(self.environ, start_response) File "/home/patrick/.eggs/WebOb-1.0.1-py2.6.egg/webob/dec.py", line 147, in call resp = self.call_func(req, args, self.kwargs) File "/home/patrick/.eggs/WebOb-1.0.1-py2.6.egg/webob/dec.py", line 208, in call_func return self.func(req, *args, kwargs) File "/home/patrick/.eggs/fanstatic-0.10-py2.6.egg/fanstatic/injector.py", line 50, in call if not response.content_type.lower() in ['text/html', 'text/xml']: AttributeError: 'NoneType' object has no attribute 'lower'

}}}

Comments (4)

  1. Log in to comment