This might mean your sourcefile uses '\r' for newlines which isn't
handled correctly by django. If that's the case, this might be worth
filing a ticket, i think.

On Jul 19, 1:20 pm, Chris Hoeppner <[EMAIL PROTECTED]> wrote:
> Hi there!
>
> I'm getting random IndexErrors. This has risen when loading
> templatetags, or just when applying a filter to a var in a template. The
> traceback doesn't mean much to me, and I'm pretty unsure what may have
> been the reason for this error.
>
> Any help?
>
> Mod_python error: "PythonHandler django.core.handlers.modpython"
>
> Traceback (most recent call last):
>
>   File "/usr/lib/python2.5/site-packages/mod_python/apache.py", line
> 299, in HandlerDispatch
>     result = object(req)
>
>   File
> "/usr/lib/python2.5/site-packages/django/core/handlers/modpython.py",
> line 178, in handler
>     return ModPythonHandler()(req)
>
>   File
> "/usr/lib/python2.5/site-packages/django/core/handlers/modpython.py",
> line 151, in __call__
>     response = self.get_response(request)
>
>   File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py",
> line 111, in get_response
>     return debug.technical_500_response(request, *sys.exc_info())
>
>   File "/usr/lib/python2.5/site-packages/django/views/debug.py", line
> 104, in technical_500_response
>     pre_context_lineno, pre_context, context_line, post_context =
> _get_lines_from_file(filename, lineno, 7, loader, module_name)
>
>   File "/usr/lib/python2.5/site-packages/django/views/debug.py", line
> 209, in _get_lines_from_file
>     context_line = source[lineno].strip('\n')
>
> IndexError: list index out of range
>
>  signature.asc
> 1KDownload


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to