Skip to content

Commit

Permalink
Use simplejson for better error descriptions.
Browse files Browse the repository at this point in the history
The standard json library only provides an error
that the json failed to parse.
simplejson provides actual character and line numbers
along with an expected character in it's errors.
This makes writing elasticsearch queries much easier.
  • Loading branch information
adamlwgriffiths committed Dec 1, 2016
1 parent 1961770 commit 4cd58cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/elasticsearch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import json
import simplejson as json
import logging
import sys
import urllib
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ pystache==0.5.4
parsedatetime==2.1
cryptography==1.4
Flask-Limiter==0.9.3
simplejson==3.10.0

0 comments on commit 4cd58cd

Please sign in to comment.