mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 17:45:04 +00:00
fix: handle response when json is None
(cherry picked from commit 133e0417b8)
This commit is contained in:
@@ -27,7 +27,7 @@ def update_reference_reports(reference_report):
|
|||||||
|
|
||||||
|
|
||||||
def update_report_json(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")
|
report_filter = report_json.get("filters")
|
||||||
|
|
||||||
if not report_filter:
|
if not report_filter:
|
||||||
|
|||||||
Reference in New Issue
Block a user