| IndexError | Python 2.4.6: /usr/bin/python2.4 Sun Feb 5 06:14:45 2012 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/cahaldunne/http/fcgi.py in run(self=<fcgi.Request object>) |
| 578 """Runs the handler, flushes the streams, and ends the request.""" |
| 579 try: |
| 580 protocolStatus, appStatus = self.server.handler(self) |
| 581 except: |
| 582 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <fcgi.Request object>, self.server = <fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object>> |
| /home/cahaldunne/http/fcgi.py in handler(self=<fcgi.WSGIServer object>, req=<fcgi.Request object>) |
| 1264 try: |
| 1265 try: |
| 1266 result = self.application(environ, start_response) |
| 1267 try: |
| 1268 for data in result: |
| result = None, self = <fcgi.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler object>, environ = {'DH_USER': 'cahaldunne', 'DOCUMENT_ROOT': '/home/cahaldunne/http', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cahaldunne.com', ...}, start_response = <function start_response> |
| /var/lib/python-support/python2.4/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'DH_USER': 'cahaldunne', 'DOCUMENT_ROOT': '/home/cahaldunne/http', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cahaldunne.com', ...}, start_response=<function start_response>) |
| 239 response = http.HttpResponseBadRequest() |
| 240 else: |
| 241 response = self.get_response(request) |
| 242 |
| 243 # Apply response middleware |
| response undefined, self = <django.core.handlers.wsgi.WSGIHandler object>, self.get_response = <bound method WSGIHandler.get_response of <django.core.handlers.wsgi.WSGIHandler object>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
| /var/lib/python-support/python2.4/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 140 exc_info = sys.exc_info() |
| 141 receivers = signals.got_request_exception.send(sender=self.__class__, request=request) |
| 142 return self.handle_uncaught_exception(request, resolver, exc_info) |
| 143 finally: |
| 144 # Reset URLconf for this thread on the way out for complete |
| self = <django.core.handlers.wsgi.WSGIHandler object>, self.handle_uncaught_exception = <bound method WSGIHandler.handle_uncaught_except...f <django.core.handlers.wsgi.WSGIHandler object>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver = <RegexURLResolver cahal.urls (None:None) ^/>, exc_info = (<class exceptions.Exception>, <exceptions.Exception instance>, <traceback object>) |
| /var/lib/python-support/python2.4/django/core/handlers/base.py in handle_uncaught_exception(self=<django.core.handlers.wsgi.WSGIHandler object>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver=<RegexURLResolver cahal.urls (None:None) ^/>, exc_info=(<class exceptions.Exception>, <exceptions.Exception instance>, <traceback object>)) |
| 164 if settings.DEBUG: |
| 165 from django.views import debug |
| 166 return debug.technical_500_response(request, *exc_info) |
| 167 |
| 168 # When DEBUG is False, send an error message to the admins. |
| debug = <module 'django.views.debug' from '/var/lib/python-support/python2.4/django/views/debug.py'>, debug.technical_500_response = <function technical_500_response>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, exc_info = (<class exceptions.Exception>, <exceptions.Exception instance>, <traceback object>) |
| /var/lib/python-support/python2.4/django/views/debug.py in technical_500_response(request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, exc_type=<class exceptions.Exception>, exc_value=<exceptions.Exception instance>, tb=<traceback object>) |
| 56 """ |
| 57 reporter = ExceptionReporter(request, exc_type, exc_value, tb) |
| 58 html = reporter.get_traceback_html() |
| 59 return HttpResponseServerError(html, mimetype='text/html') |
| 60 |
| html undefined, reporter = <django.views.debug.ExceptionReporter instance>, reporter.get_traceback_html = <bound method ExceptionReporter.get_traceback_ht... <django.views.debug.ExceptionReporter instance>> |
| /var/lib/python-support/python2.4/django/views/debug.py in get_traceback_html(self=<django.views.debug.ExceptionReporter instance>) |
| 107 self.get_template_exception_info() |
| 108 |
| 109 frames = self.get_traceback_frames() |
| 110 |
| 111 unicode_hint = '' |
| frames undefined, self = <django.views.debug.ExceptionReporter instance>, self.get_traceback_frames = <bound method ExceptionReporter.get_traceback_fr... <django.views.debug.ExceptionReporter instance>> |
| /var/lib/python-support/python2.4/django/views/debug.py in get_traceback_frames(self=<django.views.debug.ExceptionReporter instance>) |
| 226 loader = tb.tb_frame.f_globals.get('__loader__') |
| 227 module_name = tb.tb_frame.f_globals.get('__name__') |
| 228 pre_context_lineno, pre_context, context_line, post_context = self._get_lines_from_file(filename, lineno, 7, loader, module_name) |
| 229 if pre_context_lineno is not None: |
| 230 frames.append({ |
| pre_context_lineno = 68, pre_context = [u' if result is not None:', u' return result', u" if hasattr(middleware, 'process_view'):", u' result = middleware.process_view(request, view_func, args, kwargs)', u' if result is not None:', u' return result', u' try:'], context_line = u' response = view_func(request, *args, **kwargs)', post_context = [u' except Exception, e:', u" if hasattr(middleware, 'process_exception'):", u' result = middleware.process_exception(request, e)', u' if result is not None:', u' return result', u' raise'], self = <django.views.debug.ExceptionReporter instance>, self._get_lines_from_file = <bound method ExceptionReporter._get_lines_from_... <django.views.debug.ExceptionReporter instance>>, filename = '/home/cahaldunne/apps/cahal/shows/views.py', lineno = 21, loader = None, module_name = 'cahal.shows.views' |
| /var/lib/python-support/python2.4/django/views/debug.py in _get_lines_from_file(self=<django.views.debug.ExceptionReporter instance>, filename='/home/cahaldunne/apps/cahal/shows/views.py', lineno=21, context_lines=7, loader=None, module_name='cahal.shows.views') |
| 207 |
| 208 pre_context = [line.strip('\n') for line in source[lower_bound:lineno]] |
| 209 context_line = source[lineno].strip('\n') |
| 210 post_context = [line.strip('\n') for line in source[lineno+1:upper_bound]] |
| 211 |
| context_line undefined, source = [u'# Create your views here.\r\rfrom django.http impo... })\r\r\r\r\r'], lineno = 21, ].strip undefined |
IndexError: list index out of range
args =
('list index out of range',)