From 34171b12a1b19d8453e154e8553394435ca3d502 Mon Sep 17 00:00:00 2001 From: Sergey Motornyuk Date: Sun, 8 May 2022 04:22:12 +0300 Subject: [PATCH] Handle empty rows --- ckanext/googleanalytics/logic/action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/googleanalytics/logic/action.py b/ckanext/googleanalytics/logic/action.py index d80f1dd..2d54539 100644 --- a/ckanext/googleanalytics/logic/action.py +++ b/ckanext/googleanalytics/logic/action.py @@ -91,5 +91,5 @@ def event_report(context, data_dict): return { "headers": [h["name"] for h in report["columnHeaders"]], - "rows": report["rows"], + "rows": report.get("rows", []), }