diff --git a/googleanalytics/query.py b/googleanalytics/query.py index f0688ae..b67fa56 100644 --- a/googleanalytics/query.py +++ b/googleanalytics/query.py @@ -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 diff --git a/setup.py b/setup.py index 3a6204c..df719bd 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ author_email='stijn@debrouwere.org', 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',