Skip to content

Commit

Permalink
_quote_params fails when params is None.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnier committed May 2, 2013
1 parent 5ae6fcc commit cf384e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion debug_toolbar/utils/tracking/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ def _quote_expr(self, element):
return repr(element)

def _quote_params(self, params):
if isinstance(params, dict):
if not params:
return params
elif isinstance(params, dict):
return dict((key, self._quote_expr(value))
for key, value in params.iteritems())
return map(self._quote_expr, params)
Expand Down

0 comments on commit cf384e7

Please sign in to comment.