mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Improve error message for exception.
This commit is contained in:
@@ -233,7 +233,7 @@ class Python(BaseQueryRunner):
|
||||
error = "Query cancelled by user."
|
||||
json_data = None
|
||||
except Exception as e:
|
||||
error = str(e)
|
||||
error = str(type(e)) + " " + str(e)
|
||||
json_data = None
|
||||
|
||||
return json_data, error
|
||||
|
||||
Reference in New Issue
Block a user