Skip to content

Commit

Permalink
Fix: don't try to access message property of an exception (#4516)
Browse files Browse the repository at this point in the history
(not supported in Python 3)
  • Loading branch information
arikfr authored Dec 31, 2019
1 parent 29582e3 commit f85490c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/google_spreadsheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def parse_api_error(error):
if "error" in error_data and "message" in error_data["error"]:
message = error_data["error"]["message"]
else:
message = error.message
message = str(error)

return message

Expand Down

0 comments on commit f85490c

Please sign in to comment.