diff --git a/frappe/widgets/query_report.py b/frappe/widgets/query_report.py index 5c28b207de..d993687c36 100644 --- a/frappe/widgets/query_report.py +++ b/frappe/widgets/query_report.py @@ -84,6 +84,7 @@ def run(report_name, filters=()): frappe.msgprint(_("Must have report permission to access this report."), raise_exception=True) + columns, results = [], [] if report.report_type=="Query Report": if not report.query: frappe.msgprint(_("Must specify a Query to run"), raise_exception=True)