aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Hudson2009-11-06 19:28:51 -0800
committerRob Hudson2009-11-06 19:28:51 -0800
commit4d1f85f49562ffeb3040b72e631f303bf905cf5e (patch)
treef1dcebae2723334790face3995aabd850e6e5ad0
parent34bd73e5cdccce0d7e9cc76b033581e4fdd98ced (diff)
downloaddjango-debug-toolbar-4d1f85f49562ffeb3040b72e631f303bf905cf5e.tar.bz2
Fixed incompatability with Python 2.4.
-rw-r--r--debug_toolbar/panels/sql.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py
index ce43328..7a8fa65 100644
--- a/debug_toolbar/panels/sql.py
+++ b/debug_toolbar/panels/sql.py
@@ -110,8 +110,7 @@ class DatabaseStatTracker(util.CursorDebugWrapper):
cur_frame = cur_frame.f_back
except:
pass
- finally:
- del cur_frame
+ del cur_frame
# We keep `sql` to maintain backwards compatibility
self.db.queries.append({