From 285a03c0d1ab0f4b6567278f1e1871e2d5c3e21d Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Tue, 7 Oct 2008 22:43:32 -0700 Subject: Since we're concatenating params, make the default empty value a string. --- debug_toolbar/panels/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug_toolbar') diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py index dbf92c6..56b83a0 100644 --- a/debug_toolbar/panels/sql.py +++ b/debug_toolbar/panels/sql.py @@ -19,7 +19,7 @@ class DatabaseStatTracker(util.CursorDebugWrapper): return self.cursor.execute(sql, params) finally: stop = time.time() - _params = None + _params = '' try: _params = simplejson.dumps([force_unicode(x) for x in params]) except TypeError: -- cgit v1.2.3