Skip to content
Permalink
Browse files

Fix for Python 3.5, refs #435

  • Loading branch information...
simonw committed Apr 21, 2019
1 parent 9d73e3c commit 11b352b4d52fd02a422776edebb14f12e4994d3b
Showing with 1 addition and 1 deletion.
  1. +1 −1 datasette/app.py
@@ -738,7 +738,7 @@ def redirect_on_404_with_trailing_slash(request, original_response):
extra_html = "<pre>{}</pre></body>".format(extra).encode("utf8")
response.body = response.body.replace(b"</body>", extra_html)
elif "json" in response.content_type and response.body.startswith(b"{"):
data = json.loads(response.body)
data = json.loads(response.body.decode("utf8"))
if "_traces" not in data:
data["_traces"] = {
"num_traces": len(traces),

0 comments on commit 11b352b

Please sign in to comment.
You can’t perform that action at this time.