Skip to content

Commit 2194f89

Browse files
committed
Update db.py
In python3.X, we need to convert map object to list, to be able serialize it. Issue #431
1 parent 24c8ef4 commit 2194f89

File tree

1 file changed

+1
-1
lines changed
  • debug_toolbar/utils/tracking

1 file changed

+1
-1
lines changed

debug_toolbar/utils/tracking/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def execute(self, sql, params=()):
9898
stacktrace = []
9999
_params = ''
100100
try:
101-
_params = json.dumps(map(self._decode, params))
101+
_params = json.dumps(list(map(self._decode, params)))
102102
except Exception:
103103
pass # object not JSON serializable
104104

0 commit comments

Comments
 (0)