Permalink
Browse files

Since we're concatenating params, make the default empty value a string.

  • Loading branch information...
1 parent d893559 commit 285a03c0d1ab0f4b6567278f1e1871e2d5c3e21d @robhudson robhudson committed Oct 8, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 debug_toolbar/panels/sql.py
View
2 debug_toolbar/panels/sql.py
@@ -19,7 +19,7 @@ def execute(self, sql, params=()):
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:

0 comments on commit 285a03c

Please sign in to comment.