Skip to content

Commit 3a00107

Browse files
author
Ivan Júnior
committed
Added constraint for None parameters.
`Execute` methods accept `None` as params and that wasn't supported by the tracking module, that was passing into to a map function.
1 parent ad15287 commit 3a00107

File tree

1 file changed

+3
-0
lines changed
  • debug_toolbar/utils/tracking

1 file changed

+3
-0
lines changed

debug_toolbar/utils/tracking/db.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ def _quote_params(self, params):
8080
if isinstance(params, dict):
8181
return dict((key, self._quote_expr(value))
8282
for key, value in params.iteritems())
83+
elif params is None:
84+
return []
85+
8386
return map(self._quote_expr, params)
8487

8588
def execute(self, sql, params=()):

0 commit comments

Comments
 (0)