fix: handle response when json is None

This commit is contained in:
Sanket322
2025-02-05 17:41:07 +05:30
parent 848b98e6d6
commit 133e0417b8

View File

@@ -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: