From f85490cf5024f42e47ac96d1928e6d99883df380 Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Tue, 31 Dec 2019 12:45:29 +0200 Subject: [PATCH] Fix: don't try to access message property of an exception (#4516) (not supported in Python 3) --- redash/query_runner/google_spreadsheets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redash/query_runner/google_spreadsheets.py b/redash/query_runner/google_spreadsheets.py index 6126ea3210..c9f159c75b 100644 --- a/redash/query_runner/google_spreadsheets.py +++ b/redash/query_runner/google_spreadsheets.py @@ -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