#1785: debug.py assumes _get_lines_from_file() doesn't return None
-----------------------------------+----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Type: defect | Status: new
Priority: high | Milestone:
Component: Core framework | Version:
Severity: major | Keywords:
-----------------------------------+----------------------------------------
if an error occurs during view processing, debug.py has a bug such that,
on occasion, debug traceback printing fails and you cannot see what your
error was. Here's the debug.py traceback. Also see the attached patch
for a fix that works in my development environment.
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[06/May/2006 13:39:57] "GET /rate/1/3?dojo.transport=xmlhttp& HTTP/1.1"
301 0
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
site-packages/django/core/servers/basehttp.py", line 272, in run
self.result = application(self.environ, self.start_response)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
site-packages/django/core/servers/basehttp.py", line 615, in __call__
return self.application(environ, start_response)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
site-packages/django/core/handlers/wsgi.py", line 145, in __call__
response = self.get_response(request.path, request)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
site-packages/django/core/handlers/base.py", line 100, in get_response
return self.get_technical_error_response(request)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
site-packages/django/core/handlers/base.py", line 133, in
get_technical_error_response
return debug.technical_500_response(request, *sys.exc_info())
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
site-packages/django/views/debug.py", line 100, in technical_500_response
frames.append({
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
[06/May/2006 13:39:57] "GET /rate/1/3/?dojo.transport=xmlhttp HTTP/1.1"
500 1349
--
Ticket URL: <http://code.djangoproject.com/ticket/1785>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---