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