Skip to content

Commit

Permalink
Remove google-api-client monkeypatch.
Browse files Browse the repository at this point in the history
Google has now fixed this bug on their end: they properly decode errors now on Python 3, it looks like.
  • Loading branch information
debrouwere committed Dec 15, 2015
1 parent 886f139 commit 85a6fc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions googleanalytics/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,6 @@ def execute(self):
{parameters}
""", message=str(err), parameters=parameters)
raise errors.InvalidRequestError(diagnostics)
elif hasattr(err, 'content'):
# circumvent bug in `googleapiclient` on Python 3
err.content = err.content.decode('utf-8')
raise errors.GoogleAnalyticsError(str(err))
else:
raise err

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
author_email='[email protected]',
url='https://github.com/debrouwere/google-analytics/',
download_url='http://www.github.com/debrouwere/google-analytics/tarball/master',
version='0.22.1',
version='0.22.2',
license='ISC',
packages=find_packages(),
keywords='data analytics api wrapper google',
Expand Down

0 comments on commit 85a6fc8

Please sign in to comment.