Error check for potentially missing data
Error check for potentially missing data

--- a/ckanext/ga_report/download_analytics.py
+++ b/ckanext/ga_report/download_analytics.py
@@ -306,6 +306,8 @@
         result_data = results.get('rows')
         # [[url, count], [url],count]
         data = {}
+        if not result_data:
+            log.error(results)
         for result in result_data:
             data[result[0]] = data.get(result[0], 0) + int(result[1])
         self._filter_out_long_tail(data, MIN_DOWNLOADS)