Skip to content

Commit

Permalink
[bugfix] Encode unicode error message response (apache#5687)
Browse files Browse the repository at this point in the history
* Fix unicode error message response

* Update
  • Loading branch information
zhaoyongjie authored and mistercrunch committed Aug 22, 2018
1 parent 6ba5fec commit 17d51c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/views/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_error_msg():

def json_error_response(msg=None, status=500, stacktrace=None, payload=None, link=None):
if not payload:
payload = {'error': str(msg)}
payload = {'error': '{}'.format(msg)}
if stacktrace:
payload['stacktrace'] = stacktrace
if link:
Expand Down

0 comments on commit 17d51c7

Please sign in to comment.