Hi django-developers

If you have DEBUG on and an error occurs, you might get an IndexError if 
you updated your code but the page still uses old code:

   File 
"/home1/ojiich/lib/python2.5/site-packages/django/views/debug.py", line 
186, in _get_lines_from_file
     context_line = source[lineno].strip('\\n')
 IndexError: list index out of range

Since all you get in this case is a 500 from your server it might 
confuse people why they're not getting the nice debug page. So I suggest 
that the index is checked and if there's an IndexError it shows an error 
page saying something like "The code in the source file has changed but 
your webserver still uses old code".

Jonas

--

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


Reply via email to