mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
Fix summary generation
This commit is contained in:
@@ -666,7 +666,11 @@ class SummaryBuilder:
|
|||||||
result = match.group(1).strip()
|
result = match.group(1).strip()
|
||||||
|
|
||||||
# try parsing json
|
# try parsing json
|
||||||
return json.loads(result)
|
try:
|
||||||
|
return json.loads(result)
|
||||||
|
except Exception:
|
||||||
|
self.logger.error(f"Unable to parse JSON: {result}")
|
||||||
|
return result.split("\n")
|
||||||
|
|
||||||
def validate_json_schema(self, schema, result):
|
def validate_json_schema(self, schema, result):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user