From 6f60387f30bf60c17ce5e1fea34df52ac20f5d2b Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 8 Dec 2021 12:21:23 -0600 Subject: [PATCH] Fix bug when report has no params dict --- tailbone/views/reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/reports.py b/tailbone/views/reports.py index 4c8fe6e9..6359c471 100644 --- a/tailbone/views/reports.py +++ b/tailbone/views/reports.py @@ -281,7 +281,7 @@ class ReportOutputView(ExportMasterView): report = kwargs['instance'] params_data = [] - for name, value in report.params.items(): + for name, value in (report.params or {}).items(): params_data.append({ 'key': name, 'value': value,