fix: handle response when json is None

(cherry picked from commit 133e0417b8)
This commit is contained in:
Sanket322
2025-02-05 17:41:07 +05:30
committed by Mergify
parent 9a5aa8eeb9
commit eeb322bd0e

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: