django-debug-toolbar icon indicating copy to clipboard operation
django-debug-toolbar copied to clipboard

Caught IndexError while rendering: tuple index out of range

Open tlesne opened this issue 13 years ago • 4 comments

On Windows, splitting a path with '/' does not work well ;-)

The exception is located at debug_toolbar/panels/sql.py in content, line 195 Bug fixed by importing os, and replacing '/' by os.path.sep

tlesne avatar Jun 02 '11 22:06 tlesne

This is a simple fix. Would be great if included. I can do this, if it work with you..

venkasub avatar Jul 05 '11 06:07 venkasub

Fix commited and pull request sent :-) I wanted to save me the hassle of installing git ... just tried to work it with hg-git, but it didn't work. I just realized I could commit directly from github.

tlesne avatar Jul 05 '11 07:07 tlesne

Can you confirm if this is solved in the master repo?

https://github.com/django-debug-toolbar/django-debug-toolbar

(I need to update my repo so people are aware that its no longer the current version)

dcramer avatar Jul 05 '11 18:07 dcramer

I still experienced the behavior described in ticket and still had to apply fix by Timal on today's django-debug-toolbar/django-debug-toolbar.

tymofij avatar Jul 19 '11 00:07 tymofij