Misplaced return, how was this running
--- a/ckanext/ga_report/download_analytics.py
+++ b/ckanext/ga_report/download_analytics.py
@@ -262,13 +262,13 @@
if not ga_token_filepath:
print 'ERROR: In the CKAN config you need to specify the filepath of the ' \
'Google Analytics token file under key: googleanalytics.token.filepath'
- return
+ return
try:
log.info("Trying to refresh our OAuth token")
self.token, svc = init_service(ga_token_filepath, None)
log.info("OAuth token refreshed")
- except Exception auth_exception:
+ except Exception, auth_exception:
log.error("Oauth refresh failed")
log.exception(auth_exception)
return