Skip to content

Commit

Permalink
google_analytics: review fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Denisov committed Nov 24, 2016
1 parent 92dee61 commit 6bdc863
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions redash/query_runner/google_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
logger = logging.getLogger(__name__)

try:
import gspread
from oauth2client.client import SignedJwtAssertionCredentials
from apiclient.discovery import build
import httplib2
Expand Down Expand Up @@ -122,7 +121,7 @@ def run_query(self, query, user):
elif len(value) == 12:
value = datetime.strptime(value, '%Y%m%d%H%M')
else:
raise Exception('Wrong datetime format')
raise Exception("Unknown date/time format in results: '{}'".format(value))
d[column_name] = value
rows.append(d)
data = {'columns': columns, 'rows': rows}
Expand Down

0 comments on commit 6bdc863

Please sign in to comment.