From eeb322bd0e837e66d57365d5fe1669e0c9a47579 Mon Sep 17 00:00:00 2001 From: Sanket322 Date: Wed, 5 Feb 2025 17:41:07 +0530 Subject: [PATCH] fix: handle response when json is None (cherry picked from commit 133e0417b8961657f40e4692ff9a0abf2d985d21) --- erpnext/patches/v14_0/update_reports_with_range.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v14_0/update_reports_with_range.py b/erpnext/patches/v14_0/update_reports_with_range.py index 014fba883fc..ccfa4936cfd 100644 --- a/erpnext/patches/v14_0/update_reports_with_range.py +++ b/erpnext/patches/v14_0/update_reports_with_range.py @@ -27,7 +27,7 @@ def update_reference_reports(reference_report): def update_report_json(report): - report_json = json.loads(report.json) + report_json = json.loads(report.json) if report.get("json") else {} report_filter = report_json.get("filters") if not report_filter: